Abstracted email sending code out of controllers.  Updated test classes.