added support for internal replication
Merge branch 'public-api' of https://github.com/pegli/ti_touchdb into public-api