Did a lot of refactorings to HttpApplication and added UnitTests.
Changed some jetty issues and added UnitTests.