Main window drag/drop. Persistent settings. Other minor changes.