tweak commbadge emailing system

Spent me like three days of thinking how to do this cleanly.

- Bring over the other escalation emails.
- Add the special case for escalations where only the senior reviewers are emailed an email, and the developers are emailed another email.
- Refactor email code.
- Add unit tests.