Quick fix. Necessary for Bug 800402
Bug 800402 - Update tests to catch the front-end regression, improve notification consistency because of move/deletion bug caught

expect_unread now also checks that the front-end state is properly updated.
For some reason I thought we had that base covered already.

As a side-effect of fixing that the mutation tests related to moves/deletion
caught that we weren't notifying in all cases.  So I simplified things so that
we always notify when the folder saves (because it's dirty).

This then caught that the upgradeDB job wasn't issuing a save or dirtying, so
I fixed that.  Hooray tests!
Merge pull request #330 from asutherland/unread_msgs_fix

Bug 800402 follow-up to fix updating of front-end MailAPI reps. r=asuth (includes review-fixups)
Bug 885110 - [email] Switch to email.js libraries.