Store presets for own custom Lua widget

I think dt.preferences.read and write should work, have a look at this script: