Add CommandRegistry.main() as a CLI entry point

Resolves #5.
Merge pull request #16 from Carthage/run-with-process-arguments

Add CommandRegistry.main() as a CLI entry point