Refactor commands to subpackage.
Fixes for refactoring to cmd.
Split mirror subcommands into files.
Split publish into subcommands.
Refactor snapshot module into subcommands.