The root resource, collection and item resources as well as the search and query method resources now expose a handler method to handle OPTIONS requests and return a response with the Allow header set to the HTTP methods appropriate to the resource requested. Added some additional methods for HEAD requests and a few integration tests for functionality that previously existed. Related ticket: DATAREST-330.