Add SSL support.

First commit to get SSL support working.