Polymorphic attachments

Story: https://www.pivotaltracker.com/story/show/57303956