Add SSL and connection options

Also fix compiler warnings
Add docs and test
Merge pull request #11 from LinuxJedi/ssl_and_compression

Ssl and compression