Rework quite some things

- Use a monad stack to thread configuration & commands in transitions
- Add 'CLog' command

Code needs cleanup.