Generalize to queries larger than a single item.

 * implement multimap method
 * add ComplexQuery class
 * add some simple specs