Added TLS encryption.
Merge pull request #5 from Mardok/master

Added support for TLS encryption