Added summary email functionality as well as the daemon that drains the database queue of emails.