Bug 871897 - [email] Change mail sending process to use streaming to reduce peak memory usage

The first commit is the one from https://github.com/mozilla-b2g/jswbxml/pull/5 to make the tests run under mocha.  This pull request is really just for the second commit.