Move app initialization to Application class.