refactor replication module
add logging
Merge branch 'master' of github.com:cozy-labs/cozy-data-proxy