nunaliit2-couch-application: Move common document validation code to
help rapid development of the file.

Issue #224