* added some support for couchdb views, refactored registration and validation