#9 added show pref window action
#9 added beans and autowiring of app delegate