Add SSL support

closes #2