CBQE-0: Use most compact JSON representation for query args

When we have query parameters that are encoded as JSON, use the most
compact representation in order to keep the URLs as short and readable
as possible.

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