MB-100: un-write-only-ify scripts/visualize-rebalance.rb
MB-100: un-write-only-ify scripts/visualize-rebalance.rb

I've found previous version quite hard to understand and to
fix/extend. I belive that's likely due to "spread"-ness of state
there.

New code is "local-state" as much as possible with code flow
reflecting timeline state changes of every nodes.

Hopefully it will be much less write-only :)

Change-Id: I7f7a6a0b7192f04ec2197f0cf024af9129c411ad
Reviewed-on: http://review.couchbase.org/24576
Tested-by: Aliaksey Kandratsenka <340b8e09ca65cd3fc686427fcfed17e87eaf61e2@gmail.com>
Reviewed-by: Aliaksey Kandratsenka <340b8e09ca65cd3fc686427fcfed17e87eaf61e2@gmail.com>

daverigby/ns_server,mschoch/ns_server,pavel-blagodov/ns_server,mschoch/ns_server,nimishzynga/ns_server,ceejatec/ns_server,ceejatec/ns_server,membase/ns_server,t3rm1n4l/ns_server,vzasade/ns_server,mschoch/ns_server,ceejatec/ns_server,ceejatec/ns_server,pavel-blagodov/ns_server,pavel-blagodov/ns_server,daverigby/ns_server,daverigby/ns_server,mschoch/ns_server,daverigby/ns_server,vzasade/ns_server,ceejatec/ns_server,vzasade/ns_server,membase/ns_server,membase/ns_server,pavel-blagodov/ns_server,membase/ns_server,nimishzynga/ns_server,t3rm1n4l/ns_server,mschoch/ns_server,membase/ns_server,t3rm1n4l/ns_server,nimishzynga/ns_server,daverigby/ns_server,ceejatec/ns_server,t3rm1n4l/ns_server,nimishzynga/ns_server,membase/ns_server,vzasade/ns_server,nimishzynga/ns_server,t3rm1n4l/ns_server,nimishzynga/ns_server,mschoch/ns_server