More debugging in the registry handler.
Added --verbose and --debug options to all commands.

These directly control log4net, and means we can have rich debugging
options without bothering the average user. :)