Adding support for queries in regression test.

This is ports the gcloud-node regression tests for queries
over to gcloud-python.