Switch to new WebServer integration

* Refactor API integration
* Add some classes necessary to use WebServer instead of old ApplicationServer base