CBQE-0: Add active vs replica comparison logic to rebalance test and fix data_analysis

Change-Id: I5357c9050d0b15d7c7c4fa7f8f19d999dc5f5fa6
Reviewed-on: http://review.couchbase.org/36434
Reviewed-by: Parag Agarwal <agarwal.parag@gmail.com>
Tested-by: Parag Agarwal <agarwal.parag@gmail.com>