Adding support for queries in regression test.

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