Ported the SSL handshake
New way of specifying and applying STARTTLS
* Fixed ssl handshake to handle different TLS versions (code by Daniel
  Roethlisberger <daniel@roe.ch>)
* New syntax for STARTTLS to support fine-grained selection of STARTTLS
Removed all debug output