Small fixes

Replication from and to a real CouchDB works. \o/
Docs