[fix] Reset heartbeat timeout when we've accepted a new leader.
[example] Added example implementation to work with axon, zeromq or nanomsg