nunaliit2-couch-onUpload: Refactor mail notification system.

Issue #70