support programmatic API on HighAvailabilityManager to changeMode and setPriority;
priority persisted and used to elect master (also prefers non-snapshot and more recent Brooklyn versions by default, unless explicit priority overrides).
good test for changing mode in HotStandbyTest.testChangeMode.