Added support for attachments

As I reported in issue #10 earlier today, attachment support is something we really need. I added the option and expanded the unit test.

Please let me know if anything needs to change before you can pull this in!

Thanks for putting a great bundle together.