IMAP SSL Improvement

Implementation of IMAP SSL Improvement, found in http://librelist.com/browser//radicale/2012/10/25/patch-imap-acl-ssl-improvement.

Without this, Radicale was not able to log in to my Dovecot IMAP Server, which is configured to accept only SSL logins.