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
still not sure how to handle this without setting an ENV var.