Add a commandline program to interact with queryport

Added querycmd program that can be used to manually run queries
against indexer queryport.

Change-Id: I28cac2c477097e16a9f68b08df09c8881dddd64a
Reviewed-on: http://review.couchbase.org/43036
Reviewed-by: Pratap Chakravarthy <prataprc@couchbase.com>
Reviewed-by: Sarath Lakshman <sarath@couchbase.com>
Tested-by: Sarath Lakshman <sarath@couchbase.com>