core/commands2: Moved 'resolve' and 'publish' into subcommands of 'name'