CRM-13986 - REST - Add features and test case:

* Add support for filtering collections
* Add support for inserting items
* Add XML output
* Implement DELETE
* Change JSON mime type
* Revise error messages
Temporarily tweak annotations for REST compatibility