Implement 'waiting for upload' state in the process of uploading file
attachments.

Issue #214
Merge branch 'multidb' of https://github.com/GCRC/nunaliit into multidb
nunaliit2-couch-user: Do not reset user agreement roles when the user
agreement is not enabled.

Issue #200