Use a queue + cron script to process emails

Fixes #261

Okay this is ready. @toolness to review, particularly the `routes/badge.js` changes.

The idea would be that `bin/process-work-queue.js` would be run on a cron job, every *n* minutes where n is somewhere between 1 and 5.