Tidy module structure: rename job_run to action

Also added an admin directory, and moved the state machine
and directories modules there.
test: add dummy tests for untested modules

This is to ensure each module is at least imported by the test
suite (other than web modules).