MB-100 Bump mb_master advertised version for 2.2.0

Change-Id: Idaf768a71898359990810e341733a8171a56ab03
Reviewed-on: http://review.couchbase.org/27829
Tested-by: Artem Stemkovski <artem@couchbase.com>
Reviewed-by: Aliaksey Kandratsenka <alkondratenko@gmail.com>
MB-8503 serializing bucket editing through ns_orchestrator

the original problem: if you edit bucket during the rebalance
on a node other than master, then there will be a configuration
conflict and rebalance will fail at the final stage

serializing bucket editing via ns_orchestrator will guarantee
that configuration changes will happen on the same node and
therefore there will be no conflict

note: introducing new methods of ns_orchestrator will not
cause backward compatibility problems since it is guaranteed
that master node is alwaus running the latest software.

Change-Id: Ifcb820c2c205ff63d82dced5f631239ecb1ab08a
Reviewed-on: http://review.couchbase.org/27828
Tested-by: Artem Stemkovski <artem@couchbase.com>
Reviewed-by: Aliaksey Kandratsenka <alkondratenko@gmail.com>
MB-4695 allow http://<server-name> when adding node to cluster

- implemented correct url parsing on server side

- removed host:port parsing from the client code

- unified the interface of addNode and doClusterJoin
by introducing hostname parameter for doClusterJoin
with preserving the old parameters for backward compatibility

Change-Id: I29e5cf1fc5a2b06d7d63b0b3325a5124e6d0ee21
[alk@tut.by: fixed dialyzer-spotted bug with lists:concat]
Signed-off-by: Aliaksey Kandratsenka <alk@tut.by>
Reviewed-on: http://review.couchbase.org/27755
Reviewed-by: Aliaksey Kandratsenka <alkondratenko@gmail.com>
Tested-by: Aliaksey Kandratsenka <alkondratenko@gmail.com>
MB-100: killed unused massagedUsedPoolDetails

Change-Id: I2a6d883bd4e1bcad759271402c6e20ca32604101
Reviewed-on: http://review.couchbase.org/27762
Tested-by: Aliaksey Kandratsenka <alkondratenko@gmail.com>
Reviewed-by: Pavel Blagodov <stochmail@gmail.com>
MB-100: removed viewOps from basicStats which was never used

Change-Id: I56573521f292e50dbb17a24bfdcc93261e5b27fd
Reviewed-on: http://review.couchbase.org/27763
Tested-by: Aliaksey Kandratsenka <alkondratenko@gmail.com>
Reviewed-by: Pavel Blagodov <stochmail@gmail.com>
MB-100: always send basicStats

Because this private field leakead into our public documentation here:
http://www.couchbase.com/docs/couchbase-manual-2.0/restapi-named-bucket-info.html

We still send storageTotals (which is brand-new field) only if it's
request from our UI.

Change-Id: I212bbafd9644c6eea87fa51323b5d1768ef8e33d
Reviewed-on: http://review.couchbase.org/27840
Reviewed-by: Aliaksey Kandratsenka <alkondratenko@gmail.com>
Tested-by: Aliaksey Kandratsenka <alkondratenko@gmail.com>
Merge remote-tracking branch 'origin/2.2.0'

* origin/2.2.0:
  MB-100: always send basicStats
  MB-100: removed viewOps from basicStats which was never used
  MB-100: killed unused massagedUsedPoolDetails
  MB-4695 allow http://<server-name> when adding node to cluster
  MB-8503 serializing bucket editing through ns_orchestrator
  MB-100 Bump mb_master advertised version for 2.2.0

near-trivial merge

Change-Id: I79e3a7759c19735bfa1ccd5237606f9b4eb42aaa