Prepare deployment directory based on real base directory

Refactoring API service/servlet handling
Refactoring to allow soaking apps over the admin GUI
Bugfixing undeploy functionality over admin GUI