Add SSL support.

Fixes #6.
Merge pull request #8 from velour/ssl

Add SSL support.