Feature election enhance

refs #48.

State passing with seniority ruling has been updated. 
SetTimeout(fn,0) introduced to give better sync to state transitions.


Default election time is 1 second, but configurable.


Custom priority is being ironed out. Will push forward on it.