Remember unknown settings and store them back when saving

Unknown settings are entries in the settings file where information about them is unavailable
Minor refactoring of logging