config: will preserve (most) comments in the XML

Will preserve global comments immediately after the <settings> tag as
well as comments after individual settings keys.