Starts the main loop for the application.
Does not return until ConsoleApplication.quit () is called.