Add dump subcommand
Misc fixes
Implement snap subcommand