Allow adding and editing of attachments not associated with an edition

This needs more work, but is a start. As I'm on holiday next week I thought I'd drop this here and maybe @floppy can pick it up.

Currently allows basic editing and adding of attachments, but may need a bit of a cleanup. Also required would be filtering and ordering. Should be pretty trivial though.