Expanded the Application class such that it implements HttpKernel from Symfony. It also is able to use and resolve middleware now.