nunaliit2-js: Change upload handler for attachment editor. Add an option
for enabling adding of files (management) in the editor.

Issue #214