Moving client side of queryservice to its own lib.
Fixing test after tabletconn change.