Add LocalStorage store, fix more unit tests on other browsers, fix caching
of queries