Add config subcommand

Each diagnostic package should provide *_config function to generate
configuration file template.