Use Cobra to define commands

This commit replaces my implementation of subcommands with
https://github.com/spf13/cobra.