New attachment handling test 1

This is a test to make sure we didn’t break something by expanding the attachment handling code.

This code avoids storing attachments we don’t know what to do with, and makes it easier to generate markup to support attachments of various sorts.

- Jason