commander: Remove CommanderFactory.registerPlugin().

And fix its only use.

Refs #7.