Actually `command-state` should be dynamic after all...

... the only way to screw something up in production would be do
explicitly do a `(binding [command-state ...] ...)` which seems unlikely
to happen by accident.
More cosmetics: gave uuid and uuids more descriptive names etc.