define 'n1ql' as class attribute

Change-Id: I49c7144d823fbeab80c77b9c8fdf4bee7ec75c81
Reviewed-on: http://review.couchbase.org/36688
Tested-by: buildbot <build@couchbase.com>
Reviewed-by: Pavel Paulau <pavel.paulau@gmail.com>