Add simple string functions

Change-Id: I2f84a8e6795732c8a70692d2b205f3d36bdd2f2b
Reviewed-on: http://review.couchbase.org/31390
Reviewed-by: Brett Lawson <brett19@gmail.com>
Tested-by: Mark Nunberg <mnunberg@haskalah.org>
Do not cycle backup nodes on initial connection

Also the patch return meaningful error message to the user:

  $ cbc cat -h localhost:12345 foo
  ERROR: Connection failure
  	"Failed to connect to "localhost:12345": Connection refused"

Change-Id: I9760226c232d3f44c9db80417ee719c5c7138a80
Reviewed-on: http://review.couchbase.org/31676
Tested-by: Sergey Avseyev <sergey.avseyev@gmail.com>
Reviewed-by: Mark Nunberg <mnunberg@haskalah.org>
CCBC-299 fix constant name in the docs

Change-Id: Ifc32216939eb5c99164c587965d64169eb03f423
Reviewed-on: http://review.couchbase.org/30882
Tested-by: Sergey Avseyev <sergey.avseyev@gmail.com>
Reviewed-by: Sergey Avseyev <sergey.avseyev@gmail.com>
Add hostlist

Change-Id: I2909bdb21da6404e2d285c5ef2fc52ea3f06066e
Reviewed-on: http://review.couchbase.org/31391
Reviewed-by: Brett Lawson <brett19@gmail.com>
Tested-by: Mark Nunberg <mnunberg@haskalah.org>
Use host_s instead of s_host which is #defined on win32

Change-Id: I29ae09f714f0f085acc082a4753ad1b796d6295a
Reviewed-on: http://review.couchbase.org/31699
Reviewed-by: Mark Nunberg <mnunberg@haskalah.org>
Tested-by: Mark Nunberg <mnunberg@haskalah.org>