nunaliit-javascript: Move CouchDb related scripts to the couch file.

Issue #230