add initialization to xdcr factory
Merge branch 'master' of https://github.com/Xiaomei-Zhang/couchbase_goxdcr_impl