Add a preferences dialog and save and use those preferences... some preferences to include:
* Option to remember the last opened directory, as suggested in feature request 1178914
* Store popup dialog positions and sizes, as well as the main window of course
* Options to set snap-to-grid granularity, and whether that is on or off by default