add attachments and embeddables to an email

Code for add attachments and embeddables to an email.

To embed, just put a key in the template where you want to embed the file.

Fixes #3