Attachments are now removed when the object is removed.

This completes the work for issue #6.