stbt_rig: Refactor splitting up `main()` and `cmd_run()`
stbt_rig: Refactor splitting up `main()` and `cmd_run()`

So I can use `resolve_args()`, `cmd_run_prep()` and `cmd_run_body()`
individually in a pytest plugin.

stb-tester/stbt-rig