New queries api

Requires https://github.com/uwescience/myria/pull/659

The Myria API for searching queries changed slightly; this PR supports the new APIs.

See https://github.com/uwescience/myria/pull/659 for more information.