Adding basic support for n1ql.

Change-Id: Id7a94cb142230a24060cb43563266c76d9ed48f8