Initialization and run of the application.