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

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