REST API fixes in patches and repositories (bnc#790159)

REST API fixes in patches and repositories (bnc#790159)

I had to remove the action caching from PatchesController to make XML format work. Fortunately there is also caching on the model level so the performance is still good.