Ability to edit attachments from detail pages directly (fixes #177)

 (fixes #177, fixes #455, fixes #1164)