Added test for HEAD request with rev query parameter, check DELETE requests for conflicts when using rev parameter.
Return 409 Conflict HTTP status for PUT requests if the rev parameter is not the latest revision.