Move the messageGenerator out of the ActiveSync fake server

r? @asutherland: This changes the ActiveSync code to generate messages in the test runner context, not the fake server context. It also fixes `test_activesync_html.js` and move `data/lib/mailapi/testhelper.js` to `test/unit/resources/th_main.js`.