introduced state transition listener
use transition listener to check for leader election when testing consistency
implement type() in super class where possible
Merge pull request #56 from foldlabs/wait_for_leader

Wait for leader election on group of counters