Add support for assigning query-names.
Fix tests. Add tests. Fix bug found because of tests.
Merge pull request #67 from mindprince/query-names

Add support for assigning names to commands.