Support for running a _query with an http method

This allows operations like delete by query.
Included test for delete by query.