Refactor --log-start into a plugin
Some cleanups
Move --check to its own command
A few fixes and cleanups