Add support for SSL.

Add support for SSL (via stunnel), which prepares for #19.