ghostly: Move generation and testing to the info subcommand and clean up a little