SSL support

Closes #2.