deprecate renderJSON and make it easier to return a json response
also assign and test status code
Merge pull request #38 from owncloud/json

deprecate renderJSON and make it easier to return a json response