Add logging when loading and saving the configuration.
Add logging when loading and saving the configuration.

Additionally catch some error when the configuration file has become
corrupted.

ben-marsh/niftyplugins,Nexuapex/niftyplugins,Nexuapex/niftyplugins,ben-marsh/niftyplugins,jtilander/niftyplugins,jtilander/niftyplugins