Refactored out check for leadership, including checking that leadership has remained stable. Now added a test for leadership stability, and also added 5-node cluster versions of the basic cluster test and a 5-node stability test. Most runs fail, but occasionally the 3/5 node cluster tests succeed, so the failure is not in the test but in the algorithm.  Good tests, even though not ready for them to succeed.