Add basic log tests and fix various bugs in logging.
Add leader election test.
Write basic chronicle log tests.
Fix merge conflicts.