Support for file attachments

This provides support for adding file attachments to e-mails; includes basic tests and documentation, which probably need cleaning up.

Cheers,
Matt