Add STARTTLS support for both IMAP and SMTP using mozTCPSocket.upgradeToSecure().
fix typos, remove const
Pass "crypto" directly to simplesmtp for clarity
Bug 847032 - add unit test for HELO bypass; expose console.log to logs
Merge pull request #251 from asutherland/starttls

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