CLeanup and comments.
Merge branch `rewrite` into `master`.
Change node.lastId to node.LastAcceptedId.
Only learners and acceptors keep logs.
Merge branch `rewrite` into `master`.
Diary entry.
Comments and cleanup.
Merge branch `rewrite` into `master`.