Finish email changes, add EmailSent model. Issue #424.