Added tests for email messages.

- Refactored messages/email.rb a bit because #send was really building the message, then sending it.
- The message is built in #build_message which is called by #send, and then the message is delivered.
- This separates the concerns and makes it easier to write tests for this functionality.
- Related to #4.