Remove unnecessary typespecs
Error fields should be a map
Move timeout parameter to options
Add support for "type hinted" queries

A type hinted query saves one client-server round trip which will
reduce the query latency.