MB-11761: log remote cluster parameters before verifying them

Change-Id: Ib806d9969ba97ee9a431b725ce58a0aa651168cd
Reviewed-on: http://review.couchbase.org/40148
Tested-by: Aliaksey Kandratsenka <alkondratenko@gmail.com>
Reviewed-by: Aliaksey Artamonau <aliaksiej.artamonau@gmail.com>
fixed remote_clusters_info bucket gc-ing

Apparently sometimes replication doc keys are atoms and sometimes
binaries. Expecting only binaries caused us to omit replication docs,
thinking that buckets that are not used by replications when they are.

Change-Id: Ia888c0f09bd15d0143ee5a7ed6d511af52bff9f8
Reviewed-on: http://review.couchbase.org/40149
Tested-by: Aliaksey Kandratsenka <alkondratenko@gmail.com>
Reviewed-by: Aliaksey Artamonau <aliaksiej.artamonau@gmail.com>
MB-7432: reimplemented xdcr stats

We now maintain global ETS table (xdcr_stats) which allows us to
efficiently accumulate xdcr stats without having to send them to
per-replication process.

Change-Id: I4171090d69d2fad978f647efb03e035049e51b95
Reviewed-on: http://review.couchbase.org/40094
Tested-by: Aliaksey Kandratsenka <alkondratenko@gmail.com>
Reviewed-by: Aliaksey Artamonau <aliaksiej.artamonau@gmail.com>