MB-10088: implemented 3.0-style https

I.e. where ssl endpoints use certificates with Common Name matching
node's hostname.

This is now fully consumable via browsers or stock https clients
(tested with ruby's net/http).

Change-Id: Iddeaa641cd0dfcf0a006495b3db53a3bf5b2e983
Reviewed-on: http://review.couchbase.org/33230
Reviewed-by: Artem Stemkovski <artem@couchbase.com>
Tested-by: Artem Stemkovski <artem@couchbase.com>