add ssl/tls support

Added support for SSL/TLS connections to the CouchDB host.