Internal refactor to master cmd

First-pass breakup of logical components into function calls for general
maintainability, refactorability, merge-conflict-avoidance, etc.
Do you want this factored into something resembling `util/docker/docker.go`? Or what?