This adds a tls_t that looks a bit like a socket, but can turn on and off tls. The idea would be to plug this into the xmpp_conn_t and use it iff the connection is in TLS mode.