Add CommandRegistry.main() as a CLI entry point

Resolves #5.