Using json-schemas, make a pretty decent couch api. Relationships (and batteries) included.