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>