Add content type detection to attachments

Based on mimetypes library, tests to come later.
Rearrange pydoc in Mailer class

The two pydoc sections were in the incorrect place to be picked up
successfully.
Fix content_type detection in attachment class
Add basic tests for attachments