bp:MB-5307: use -Wno_improper_lists dialyzer options

I.e. because we had to forker file_sorter from erlang that is not
dialyzer-clean without that option.

Orig-Reviewed-on: http://review.couchbase.org/23594

NOTE: we need to backport it, even if it's MB-5307, to keep ns_server
dialyzer clean.

Change-Id: Ifaaef60254ac751dd7cff1f2a179a0ec567ead48
Reviewed-on: http://review.couchbase.org/23670
Tested-by: Aliaksey Kandratsenka <alkondratenko@gmail.com>
Reviewed-by: Aliaksey Artamonau <aliaksiej.artamonau@gmail.com>
MB-6726: decrease overhead of capi_set_view_manager

Looks like logging of each call's args twice plus some excessive
calls, plus some duplicated checks were eating quite significant
amount of CPU.

In my swap rebalance 3-total-1-swap tests it was speedup from about 10
minutes down to 6. Most likely this is some fixed cost (independent
from size of data), but it's still a good win to have.

Change-Id: I1bf29e3859fa64d2c4180fd06f5b5738b06b5e5e
Reviewed-on: http://review.couchbase.org/23669
Reviewed-by: Aliaksey Artamonau <aliaksiej.artamonau@gmail.com>
Tested-by: Aliaksey Kandratsenka <alkondratenko@gmail.com>
Revert "MB-6726: decrease overhead of capi_set_view_manager"

This reverts commit c3e2d76b4360d2a50a4ca82f38bdf6afd6fca720.

Thinking about this more. I think not unly I bended stable branch
rules a bit too far, but I also forgot to update commit message.

Change-Id: I81e2585ed87a6242c461340aa509afe64cb42c4e
Reviewed-on: http://review.couchbase.org/23693
Reviewed-by: Aliaksey Kandratsenka <alkondratenko@gmail.com>
Tested-by: Aliaksey Kandratsenka <alkondratenko@gmail.com>
MB-7354: Use ep_meta_data_memory to monitor meta data usage

This fixes the stats in the admin console and also makes sure the
alert is properly throw if meta data usage gets too high.

Change-Id: I47685928aacecf564c2b02e90da86bbae316886f
Reviewed-on: http://review.couchbase.org/23619
Reviewed-by: Aliaksey Kandratsenka <alkondratenko@gmail.com>
Tested-by: Aliaksey Kandratsenka <alkondratenko@gmail.com>
MB-7491: use 2.0.1 as master heartbeat version

So that 2.0.1 will forcefully take mastership from 2.0.0 nodes.

Change-Id: I5bf0ddc6d27362646bc5e2694b6adf99e4165950
Reviewed-on: http://review.couchbase.org/23728
Tested-by: Aliaksey Kandratsenka <alkondratenko@gmail.com>
Reviewed-by: Aliaksey Artamonau <aliaksiej.artamonau@gmail.com>
Merge remote-tracking branch 'origin/2.0.1'

* origin/2.0.1:
  MB-7491: use 2.0.1 as master heartbeat version
  MB-7354: Use ep_meta_data_memory to monitor meta data usage
  Revert "MB-6726: decrease overhead of capi_set_view_manager"
  MB-6726: decrease overhead of capi_set_view_manager
  bp:MB-5307: use -Wno_improper_lists dialyzer options

Change-Id: I6ad4c4640a1341c30b87747b7ca6cbcb2424ecc9