add support for configuring couchbase XDCR (replication) and bump to v3.0

needs testing but submitted for early review
no reason - i'm just fixing a bug where we already assumed the call had finished before progressing, went with the minimal change.