nunaliit2-couch-application: Use common validation code.

Issue #224