Slight modifications to support HTTPS.

Cloudant support HTTPS, let's use it.