CBQE-2474: n1ql rest api tests

Change-Id: I38a6c4c38d310f5f7f74db751e6e57121983634e
Reviewed-on: http://review.couchbase.org/43488
Reviewed-by: Ketaki Gangal <ketakigangal@gmail.com>
Tested-by: buildbot <build@couchbase.com>