refs #9: Updated the params method to allow easy overriding of actions.
refs #9: Added a test for emails
refs #9: Got emails working.