Moved the ModuleManager outside the Application.