Only filter if there is a query and/or ids
Merge remote-tracking branch 'origin/diffquery3' into diffquery
small changes
merging latest patch

Merge branch 'diffquery' of github.com:sociam/indx into diffquery3
Change websocket test to work with new indx.js
Fix diff not returning issue
merging in dan's critical fix

Merge branch 'diffquery' of github.com:sociam/indx into diffquery3
updated difftest