TC 1.0 Query API

This reworks some code to respect 1.0 query parameters. The existing tests around context activities, ad-hoc groups, and other existing tests are providing good coverage for the 1.0 query API. The ad-hoc groups test has been generalized to also test single agents as well.