Thrift IDL updated, lookup details are now provided in a "Query" struct.
Thrift IDL updated, lookup details are now provided in a "Query" struct.

This allows for more flexible changes, and will stop the "lookup" function arguments
ballooning any further. Added stubs for features to come.

nick-jones/Pisco