Allow setting defaults and requirements for the api route
Use raw PathInfo for matching urls
Merge pull request #3888 from owncloud/ocs_api_fixes

Ocs api fixes