Attachment filenames must be unique

This adds a validation to ensure attachments on any given attachable have unique filenames.