Leader is identified as [address, port].
Test leader selection.
Fix callbacks and ports.
Merge branch `rewrite` into `master`.