gui: add saving preferences (open/save paths, flatten packages)