Complete rewrite

* implement replication as documented in http://kxepal.iriscouch.com/docs/dev/replication/protocol.html
* every functionality into its own file
* unit tests
* adapter based on PouchDB api
* test against native replication api
readme love
Merge pull request #1 from jo/pouchdb-compatibility

Pouchdb compatibility