refactored webservice api; added basic generated documentation for it (/_api)