Adding more options to customize query/verification process

As of this commit, it is possible to disable verification of the
query results (including intermediate results), deferring verification
decision to the user.

The policy constructor now requires an object implementing query
interface and optionally cache for the queries.