Adding some general debugging code to AppDelegate. Handy to have around for odd job debugging.
Bug fix for on-the-fly extension registration / unregistration / auto-unregistration. Fixes issue #11