(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.
style in this repo is for the arguments to be on a separate line. We've got same-line arguments in a few places but they're being weeded out slowly.