Remove log clean methods.
Clean up new state machine API.
Support Map default command arguments.
Fix memory log tests.
Update replication tests.
Fix bugs in state context starts.