tweak commbadge emailing system

- 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.