Main server app refactored: using lib/webservice