Use <a> links in attachments to support middle-clicking, among other things.
Add plugins for audio, video, and image attachments.

Wire up to actually use the insert code in the HTML editor. Also each plugin now is responsible for providing any HTML tags that it wants to whitelist along with explicitly naming supported MIME types.