Correctly process request parameters other than GET or POST, dont use globals in the class but inject it
default to GET request when no method is set to fix unittests, also set parsed json parameters on the post attribute
Merge pull request #8178 from owncloud/fix-request-parameters

Correctly process request parameters other than GET or POST, dont use gl...