libgimpconfig: add API operating on GFiles instead of filenames

to GimpConfigInterface's wrappers, to GimpConfigWriter and to
GimpScanner.
app: use gimp_config_serialize_to_gfile() for dynamics and tool presets