add simple n1ql support.

Change-Id: Iaca7ba3e39ae24ae66925ac14471c8ac22d80217
Reviewed-on: http://review.couchbase.org/37383
Reviewed-by: Michael Nitschinger <michael.nitschinger@couchbase.com>
Tested-by: Michael Nitschinger <michael.nitschinger@couchbase.com>