Working implementation of leader election and replicated log.
Add logging levels.
Add read/write file API.