[WIP] add support for configuring couchbase XDCR (replication)

needs testing but submitted for early review