Initial checkin of query REST API
REST API: support for json content-type, new request arguments.

Adds support for json content-type, and new arguments in a request
(signature, format, pretty, compression, encoding). Request id and
results size given in the output. Processing of positional and named
arguments in the request.
Typo fixes
Accept only GET, POST http requests
MB-12601: Add CMakeLists.txt to integrate with Sherlock build

Change-Id: I57c3a00961200bd043a744de66ff7043e14e71ac
Enable ns_server shutdown on EOL to stdin (in addition to EOF)
MB-12393. Implement explain, first commit
scan_consistency and scan_wait in query request
Fix broken url-encoded http requests
Restrict newValueFromBytes() to package only.
Refactor dev build scripts.
Update documentation for each method implementation in value
Add API for index state.
Update documentation for bool, num, null and string in value
Add metrics recording
Stats tracking of requests
Add comments for index states.
credentials support in REST API
Extend expression Visitors to handle expressions implemented in algebra package. Fix MB-12645.
Organize algebra package around Statement as the main abstraction.