(PDB-1071) Add pagination to service query method

In order to support pagination in the service query method, have it
accept a map instead of the raw query structure.  The map should contain
a :query referring to the original query, alongside (optional)
:order-by, :offset, and :limit members.
also, I think it would be cool to have this parameterized on version and endpoint as well -- seems like it may be a useful function in a few places