CBQE-1531: add possibility to query using rest

Change-Id: Ie9703de6674e670823015aec0b5f7d161043081e
Reviewed-on: http://review.couchbase.org/29056
Reviewed-by: Iryna Mironava <irynamironava@yandex.ru>
Tested-by: Iryna Mironava <irynamironava@yandex.ru>