Added initial version of TLS support in afsocket.