Refactoring: move all command from their own package to the cmds package

Simplifies codebase since all command fit it one file and there is no need
to have special package per command. This required moving more code to the
common package and adding a PrinterInterface.