Implemented leader election based on the RAFT algorithm.
(wip) Simple log replication added.
(wip)
Runs 3 nodes:
go run ./cmd/server/main.go --id 0
go run ./cmd/server/main.go --id 1
go run ./cmd/server/main.go --id 2
At the moment, there is no host discovery implemented. So, the program runs assuming it's running on localhost.