Initial support for authentication/encryption
Working SSL client support
Initial support for certificate auth
Improve config option passing
Don't use {header,1}, it is buggy with SSL sockets

Also, you can trivially do the same thing with the bit syntax.