added previous content hash field at query model
cleanup and polishing
persistent queries are now the default
updated query api not to server completed queries