fix failing test where sometimes the wrong mgmt node was elected; add a test which does it 100 times;
also add support for retrieving the current mgmt node state live (though i'm no longer sure this is important, as noted in javadoc);
and minor tidies including class rename for BasicManagerSyncRecord -> BasicManagementNodeSyncRecord.