Remove some old state-restoring code
Send file commands to windows by default
Close empty, untitled document windows when opening a file
Allow dialogs to specify a parent window (mostly for OS X)