refactored query api, added client component
removed client tests
Release 0.1.1