Add basic SSL support.

This does not do any peer verification, just a proof of concept.