Removing static access to Application class, adding predispatcher functionality