Email digests

* The email template is a bare bones table for now. Perhaps we can put together a fancy email-friendly html template and text fallback.
* I'll add inline comments below
We can clean this up later. Need to refactor the notifier/channels anyway.