Allow update metadata to take both stores and cluster xml
atomic update of stores and cluster xml during rebalance
Added new end to end test for verifying the atomic update is consistent
on bootstrap
cleaned up code based off last code review
Made the getserverStateLocked explicit
adding the new test case this time around
Cleaned up the test
 more cleanup on the test
cleanup on tests
Fix unused variable