NCBC-553: Could not bootstrap bucket with ssl connection

Fixes configuration bug that caused the bucket configuration settings to
be ignored. This in turn would make the client fail when attempting to
bootstrap because the urls and ports used would be non-ssl. Additional
unit tests and a property (IsSecure) were added to make it easier to
determine if the connection is indeed secure.
Change-Id: Icb174a516cf3e529154d5b51ccd23bcf1f77cc57
Reviewed-on: http://review.couchbase.org/39649
Reviewed-by: Brett Lawson <brett19@gmail.com>
Tested-by: Brett Lawson <brett19@gmail.com>