Add test coverage for Vanity usage in ActionMailer.

* Addresses #122.
* Refactors some of the rails framework for clarity.