Added basic impl to generate view defs from existing couchdb