Raft fixes, integrate logging.