nunaliit2-js: Fix issue where linked documents are not reported.

Issue #196
Merge branch 'master' of https://github.com/GCRC/nunaliit.git
Fix issue where directories are assumed when a file is copied.

Issue #195
nunaliit2-js: In n2.couchEdit.js, fix selectLayersDialog so that
currently selected layers are displayed.

Issue #201
Merge branch 'master' into multidb

Conflicts:
	nunaliit2-js/src/main/webapp/nunaliit2/n2.couchDisplay.js
	nunaliit2-js/src/main/webapp/nunaliit2/n2.couchEdit.js