add support for SSL/TLS connections
Merge pull request #2 from pmack/master

add ssl/tls support