attachments: basic CRUD operations

The key was to copy/paste code from the Journal model's 'avatar'
feature.
set_gridfs_context: refactor
fix constants file typo
squash me into attachments CRUD