touching up on some of the log-commit stuff, started connecting the dots with a couple other places in the code for applying log to state machine