Refactored based on Adams pull request comments. Added actionmailer host to config/environments/test.rb and removed the explicit host from the url in mailer views. Removed some unecessary string interpolation and require_relative statements.