Work in progress converting to use ECPreferencesWindow
Removed old prefs window stuff, hooked up ECPreferencesWindow instead