Adding support for queries in regression test.

This is an attempt port the gcloud-node regression tests
for queries over to gcloud-python.