bring over Kouchdb initiator
ws compiles, passes tests.