Add CouchDB design document
Make Couch integration work. Mostly.