Made it possible to deny PATCH or POST for a resource. Also did a bit of refactoring of generated client.