refactored request handling to owncloud
little code cleanup for request handling
categories are not sent to owncloud correctly