Added basic ssl support.

Requires gnutls.