Election FSM, Node election integration, some log API changes