MB-4786: actually exclude page cache size from used memory size

Previous commit unly did that for v1 output from sigar_port

Change-Id: I5771e748fd548e0ea9324341ba63493c84083629
Reviewed-on: http://review.couchbase.org/27722
Tested-by: Aliaksey Kandratsenka <alkondratenko@gmail.com>
Reviewed-by: Aliaksey Artamonau <aliaksiej.artamonau@gmail.com>
MB-8533 make statistics work on node that is pending rebalance

if the node is in pending rebalance stage, then it is
not mapped to the bucket yet and all the servers that
provide statistical info are not started

so in this case we need to call other nodes to get
the statistics descriptions.

also the code uses node() as the first node to
get stat information from and if the first call
fails it will display empty stats.

the fix checks if the node() is one of the live nodes
for the bucket, and if not it will pick up the first
live node and perform the first call against it.

since the views signatures cannot be obtained from
the 2.0 nodes and at this time there's no compat mode
between 2.2 and 2.0 I decided that we can scrifice
"View Stats" for the added and non rebalanced nodes.

so in the currect solution View Stats will be hidden
for all the nodes that do not have the bucket yet.

alternative to this will be trying to obtain the info
from the other nodes in the cluster crashing
capi_set_view_manager on the older nodes.

another alternative is to create a separate gen_server
for obtaining the signatures. in this case the older
nodes will return noproc, and if the cluster contains
at least one 2.2 node that has the bucket we will
be able to populate Views Stats. But I decided that it
will be an overkill for such unimportant corner case.

Change-Id: Iefb41122a2696069278c112c15ce2c28f7570bdd
Reviewed-on: http://review.couchbase.org/27669
Tested-by: Artem Stemkovski <artem@couchbase.com>
Reviewed-by: Aliaksey Artamonau <aliaksiej.artamonau@gmail.com>
MB-5641 Limit bucket name length to 100 chars

Change-Id: Ic5cf7733d4af5451247a950ec871fb6b13ce3941
Reviewed-on: http://review.couchbase.org/27747
Tested-by: Artem Stemkovski <artem@couchbase.com>
Reviewed-by: Aliaksey Artamonau <aliaksiej.artamonau@gmail.com>
Merge remote-tracking branch 'couchbase/2.2.0'

* couchbase/2.2.0:
  MB-5641 Limit bucket name length to 100 chars
  MB-8533 make statistics work on node that is pending rebalance
  MB-4786: actually exclude page cache size from used memory size

Change-Id: I2745d71172fd0ddcfe569514ed04a4e7a0c0a9f9