sqlite4java: upgrade to v.392

Fix #635
QueryResource: add full-text search of the raw queries

Plus tests.
QueryResource: update X-Count for searchTerm as well
add min to the getQueries call to support pagination
CatalogTest: test query searching
QueryManager: fix race in getQueryStatus

Old version: check the catalog, then check current query. Was possible
for the current query to finish in between these two checks, so the
wrong answer would be returned.
MasterCatalog: get rid of isErrorEnabled()
MasterCatalog: add min, max query result ids
QueryResource: add max, min query results to response
Merge branch 'master' into fts_queries-v2
MasterCatalog: fix typo
Merge pull request #659 from uwescience/fts_queries-v2

Fts queries v2