Support SSL for IMAP authentication

Based on Nikita Koshikov's commit:
https://github.com/interlegis/Radicale/commit/000fc2a