Move code to an extended Application class.
Add Configuration service provider.