fix(core): save preferences when they are changed
Description
Save preferences when updated from GUI.
Closes #502 (closed)
How to test it?
Compile an App with preferences (ExNotifications), change preferences and check that preference file is updated after validation of the change in GUI.