query{,factory}.js: updated to manage no query
localstorage.js: updated to support complex queries + tests