Fixed broken method call
Abstracted the application server out to its own class so it will be easier to provide Jetty replacements in the future.