Demo for query storing

Change-Id: I947bcac841992c3f6cfd01ab337c265b0d01cb70
diff --git a/node_modules/is-object/.jscs.json b/node_modules/is-object/.jscs.json
new file mode 100644
index 0000000..97ab933
--- /dev/null
+++ b/node_modules/is-object/.jscs.json
@@ -0,0 +1,55 @@
+{
+  "requireCurlyBraces": ["if", "else", "for", "while", "do", "try", "catch"],
+
+  "requireSpaceAfterKeywords": ["if", "else", "for", "while", "do", "switch", "return", "try", "catch", "function"],
+
+  "disallowSpaceAfterKeywords": [],
+
+  "requireSpacesInAnonymousFunctionExpression": { "beforeOpeningRoundBrace": true, "beforeOpeningCurlyBrace": true },
+  "requireSpacesInNamedFunctionExpression": { "beforeOpeningCurlyBrace": true },
+  "disallowSpacesInNamedFunctionExpression": { "beforeOpeningRoundBrace": true },
+  "requireSpacesInFunctionDeclaration": { "beforeOpeningCurlyBrace": true },
+  "disallowSpacesInFunctionDeclaration": { "beforeOpeningRoundBrace": true },
+
+  "disallowSpacesInsideParentheses": true,
+
+  "disallowSpacesInsideArrayBrackets": true,
+
+  "disallowQuotedKeysInObjects": "allButReserved",
+
+  "disallowSpaceAfterObjectKeys": true,
+
+  "requireCommaBeforeLineBreak": true,
+
+  "disallowSpaceAfterPrefixUnaryOperators": ["++", "--", "+", "-", "~", "!"],
+  "requireSpaceAfterPrefixUnaryOperators": [],
+
+  "disallowSpaceBeforePostfixUnaryOperators": ["++", "--"],
+  "requireSpaceBeforePostfixUnaryOperators": [],
+
+  "disallowSpaceBeforeBinaryOperators": [],
+  "requireSpaceBeforeBinaryOperators": ["+", "-", "/", "*", "=", "==", "===", "!=", "!=="],
+
+  "requireSpaceAfterBinaryOperators": ["+", "-", "/", "*", "=", "==", "===", "!=", "!=="],
+  "disallowSpaceAfterBinaryOperators": [],
+
+  "disallowImplicitTypeConversion": ["binary", "string"],
+
+  "disallowKeywords": ["with", "eval"],
+
+  "validateLineBreaks": "LF",
+
+  "requireKeywordsOnNewLine": [],
+  "disallowKeywordsOnNewLine": ["else"],
+
+  "requireLineFeedAtFileEnd": true,
+
+  "disallowTrailingWhitespace": true,
+
+  "excludeFiles": ["node_modules/**", "vendor/**"],
+
+  "disallowMultipleLineStrings": true,
+
+  "additionalRules": []
+}
+
diff --git a/node_modules/is-object/.npmignore b/node_modules/is-object/.npmignore
new file mode 100644
index 0000000..fd31f5e
--- /dev/null
+++ b/node_modules/is-object/.npmignore
@@ -0,0 +1,15 @@
+.DS_Store
+.monitor
+.*.swp
+.nodemonignore
+releases
+*.log
+*.err
+fleet.json
+public/browserify
+bin/*.json
+.bin
+build
+compile
+.lock-wscript
+node_modules
diff --git a/node_modules/is-object/.testem.json b/node_modules/is-object/.testem.json
new file mode 100644
index 0000000..287edfe
--- /dev/null
+++ b/node_modules/is-object/.testem.json
@@ -0,0 +1,14 @@
+{
+    "launchers": {
+        "node": {
+            "command": "node ./test"
+        }
+    },
+    "src_files": [
+        "./**/*.js"
+    ],
+    "before_tests": "npm run build",
+    "on_exit": "rm test/static/bundle.js",
+    "test_page": "test/static/index.html",
+    "launch_in_dev": ["node", "phantomjs"]
+}
diff --git a/node_modules/is-object/.travis.yml b/node_modules/is-object/.travis.yml
new file mode 100644
index 0000000..912080a
--- /dev/null
+++ b/node_modules/is-object/.travis.yml
@@ -0,0 +1,18 @@
+language: node_js
+node_js:
+  - "0.11"
+  - "0.10"
+  - "0.9"
+  - "0.8"
+  - "0.6"
+  - "0.4"
+before_install:
+  - '[ "${TRAVIS_NODE_VERSION}" == "0.6" ] || npm install -g npm@~1.4.6'
+matrix:
+  fast_finish: true
+  allow_failures:
+    - node_js: "0.11"
+    - node_js: "0.9"
+    - node_js: "0.6"
+    - node_js: "0.4"
+
diff --git a/node_modules/is-object/LICENSE b/node_modules/is-object/LICENSE
new file mode 100644
index 0000000..72d356c
--- /dev/null
+++ b/node_modules/is-object/LICENSE
@@ -0,0 +1,19 @@
+Copyright (c) 2013 Colingo.
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in
+all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+THE SOFTWARE.
diff --git a/node_modules/is-object/README.md b/node_modules/is-object/README.md
new file mode 100644
index 0000000..d6e7b7d
--- /dev/null
+++ b/node_modules/is-object/README.md
@@ -0,0 +1,55 @@
+# is-object <sup>[![Version Badge][12]][11]</sup>
+
+[![build status][1]][2]
+[![dependency status][3]][4]
+[![dev dependency status][9]][10]
+[![License][license-image]][license-url]
+[![Downloads][downloads-image]][downloads-url]
+
+[![npm badge][13]][11]
+
+[![browser support][5]][6]
+
+Checks whether a value is an object
+
+Because `typeof null` is a troll.
+
+## Example
+
+```js
+var isObject = require('is-object');
+var assert = require('assert');
+
+assert.equal(isObject(null), false);
+assert.equal(isObject({}), true);
+```
+
+## Installation
+
+`npm install is-object`
+
+## Contributors
+
+ - [Raynos][7]
+ - [Jordan Harband][8]
+
+## MIT Licensed
+
+  [1]: https://secure.travis-ci.org/ljharb/is-object.svg
+  [2]: http://travis-ci.org/ljharb/is-object
+  [3]: http://david-dm.org/ljharb/is-object/status.svg
+  [4]: http://david-dm.org/ljharb/is-object
+  [5]: http://ci.testling.com/ljharb/is-object.svg
+  [6]: http://ci.testling.com/ljharb/is-object
+  [7]: https://github.com/Raynos
+  [8]: https://github.com/ljharb
+  [9]: https://david-dm.org/ljharb/is-object/dev-status.svg
+  [10]: https://david-dm.org/ljharb/is-object#info=devDependencies
+  [11]: https://npmjs.org/package/is-object
+  [12]: http://vb.teelaun.ch/ljharb/is-object.svg
+  [13]: https://nodei.co/npm/is-object.png?downloads=true&stars=true
+[license-image]: http://img.shields.io/npm/l/is-object.svg
+[license-url]: LICENSE
+[downloads-image]: http://img.shields.io/npm/dm/is-object.svg
+[downloads-url]: http://npm-stat.com/charts.html?package=is-object
+
diff --git a/node_modules/is-object/index.js b/node_modules/is-object/index.js
new file mode 100644
index 0000000..e618d11
--- /dev/null
+++ b/node_modules/is-object/index.js
@@ -0,0 +1,5 @@
+"use strict";
+
+module.exports = function isObject(x) {
+	return typeof x === "object" && x !== null;
+};
diff --git a/node_modules/is-object/package.json b/node_modules/is-object/package.json
new file mode 100644
index 0000000..34d2844
--- /dev/null
+++ b/node_modules/is-object/package.json
@@ -0,0 +1,90 @@
+{
+  "_from": "is-object@^1.0.1",
+  "_id": "is-object@1.0.1",
+  "_inBundle": false,
+  "_integrity": "sha1-iVJojF7C/9awPsyF52ngKQMINHA=",
+  "_location": "/is-object",
+  "_phantomChildren": {},
+  "_requested": {
+    "type": "range",
+    "registry": true,
+    "raw": "is-object@^1.0.1",
+    "name": "is-object",
+    "escapedName": "is-object",
+    "rawSpec": "^1.0.1",
+    "saveSpec": null,
+    "fetchSpec": "^1.0.1"
+  },
+  "_requiredBy": [
+    "/isurl"
+  ],
+  "_resolved": "https://registry.npmjs.org/is-object/-/is-object-1.0.1.tgz",
+  "_shasum": "8952688c5ec2ffd6b03ecc85e769e02903083470",
+  "_spec": "is-object@^1.0.1",
+  "_where": "C:\\Users\\marcr\\Desktop\\KorAp\\Git\\Kalamar\\node_modules\\isurl",
+  "author": {
+    "name": "Raynos",
+    "email": "raynos2@gmail.com"
+  },
+  "bugs": {
+    "url": "https://github.com/ljharb/is-object/issues",
+    "email": "ljharb@gmail.com"
+  },
+  "bundleDependencies": false,
+  "contributors": [
+    {
+      "name": "Raynos"
+    },
+    {
+      "name": "Jordan Harband",
+      "url": "https://github.com/ljharb"
+    }
+  ],
+  "dependencies": {},
+  "deprecated": false,
+  "description": "Checks whether a value is an object",
+  "devDependencies": {
+    "covert": "~1.0.0",
+    "jscs": "~1.6.0",
+    "tape": "~2.14.0"
+  },
+  "homepage": "https://github.com/ljharb/is-object",
+  "keywords": [],
+  "license": "MIT",
+  "licenses": [
+    {
+      "type": "MIT",
+      "url": "http://github.com/ljharb/is-object/raw/master/LICENSE"
+    }
+  ],
+  "main": "index",
+  "name": "is-object",
+  "repository": {
+    "type": "git",
+    "url": "git://github.com/ljharb/is-object.git"
+  },
+  "scripts": {
+    "coverage": "covert test/index.js",
+    "coverage-quiet": "covert test/index.js --quiet",
+    "lint": "jscs *.js */*.js",
+    "test": "npm run lint && node test/index.js && npm run coverage-quiet"
+  },
+  "testling": {
+    "files": "test/index.js",
+    "browsers": [
+      "ie/6..latest",
+      "firefox/3..6",
+      "firefox/16..latest",
+      "firefox/nightly",
+      "chrome/22..latest",
+      "chrome/canary",
+      "opera/10.0",
+      "opera/11..latest",
+      "opera/next",
+      "safari/4..latest",
+      "ipad/6.0..latest",
+      "iphone/6.0..latest"
+    ]
+  },
+  "version": "1.0.1"
+}
diff --git a/node_modules/is-object/test/index.js b/node_modules/is-object/test/index.js
new file mode 100644
index 0000000..35267a9
--- /dev/null
+++ b/node_modules/is-object/test/index.js
@@ -0,0 +1,23 @@
+var test = require('tape');
+
+var isObject = require('../index');
+
+test('returns true for objects', function (assert) {
+	assert.equal(isObject({}), true);
+	assert.equal(isObject([]), true);
+
+	assert.end();
+});
+
+test('returns false for null', function (assert) {
+	assert.equal(isObject(null), false);
+
+	assert.end();
+});
+
+test('returns false for primitives', function (assert) {
+	assert.equal(isObject(42), false);
+	assert.equal(isObject('foo'), false);
+
+	assert.end();
+});