Added TLS support
Merge pull request #36 from yourkarma/tls-support

Added TLS support