Feature parity of Mojo with CLI.

Add support for roots, not emitting options, and the registry class.