MB-8887 Handle old nodes when building basic stats.

Change-Id: Ic22c118924e3ae6d1f398e6c731e593fcc5ddf09
Reviewed-on: http://review.couchbase.org/28525
Tested-by: Aliaksey Artamonau <aliaksiej.artamonau@gmail.com>
Reviewed-by: Aliaksey Kandratsenka <alkondratenko@gmail.com>
MB-8909 Disallow spaces and control characters in bucket passwords.

Change-Id: Ie95a8e02c8955a0c385f201a9b797648a071d5c6
Reviewed-on: http://review.couchbase.org/28524
Tested-by: Aliaksey Artamonau <aliaksiej.artamonau@gmail.com>
Reviewed-by: Aliaksey Kandratsenka <alkondratenko@gmail.com>
MB-8909: make errors for bucket password visible

Change-Id: Ie5d476ff96c7c3e403d72884ab888f5004e6372f
[alk@tut.by: prettified error message look a bit]
Signed-off-by: Aliaksey Kandratsenka <alk@tut.by>
Reviewed-on: http://review.couchbase.org/28526
Tested-by: Aliaksey Kandratsenka <alkondratenko@gmail.com>
Reviewed-by: Aliaksey Kandratsenka <alkondratenko@gmail.com>
MB-100: fix unreaable XDCR trace

The original trace was modified in recent commits but the
XMem remote info is dumped incorrectly and unreadable. This
commit will create a readable string for XMmem remmote. E.g,

(target node: 10.3.121.123:11210, target bucket: default)

Change-Id: Ie16792077100ebc96206bbc4449fe9c9858b3bfa
Reviewed-on: http://review.couchbase.org/28537
Tested-by: Junyi Xie <junyi.couchbase@gmail.com>
Reviewed-by: Artem Stemkovski <artem@couchbase.com>
MB-100: fix XDCR dialyzer error

Change-Id: I2c8c3a2e40573d0a611cf037459ff044c9c2c292
Reviewed-on: http://review.couchbase.org/28544
Reviewed-by: Aliaksey Artamonau <aliaksiej.artamonau@gmail.com>
Tested-by: Junyi Xie <junyi.couchbase@gmail.com>
Merge remote-tracking branch 'couchbase/2.2.0'

* couchbase/2.2.0:
  MB-100: fix XDCR dialyzer error
  MB-100: fix unreaable XDCR trace
  MB-8909: make errors for bucket password visible
  MB-8909 Disallow spaces and control characters in bucket passwords.
  MB-8887 Handle old nodes when building basic stats.

Conflicts:
	src/ns_bucket.erl

Change-Id: Ie0adea95558c9243b74662c615588dbc3113b3b0