nunaliit2-couch-application, nunaliit2-js: Move javascript logic needed
to handle attachments in the library (from upload application)

Issue #244