Use :leader-id as atom in state key for node-config
Refactor message dispatch and worker startup. Add more dispatcher tests