Add a printsettings command to print the settings and their source.
Simplified the mechanism by which we retrieve the key's namespace for the printsettings command.