Fix crash when clicking the preview icon. - Related to issue #79

For some reason the NSPanel was autoreleased after being loaded from the nib. Fixed it by using `[NSWindowController initWithWindowNibName:]` instead of loading the nib by hand in `mainWindowInBundle:`.