Bug 847032 - [email] IMAP only supports initially-SSL encrypted connections, STARTTLS upgrade not supported from unencrypted cleartext.

Adds STARTTLS support for both IMAP and SMTP using mozTCPSocket.upgradeToSecure().