Refactor of transactions controller and user model

Moved relevated mailing logic into user model, and broke up
potentially long method.