Fix dock icon and menu issues.

- Make the app become a "regular" app when a
  window is visible (fixes issues with dock icon)
- Always show the main window when another window
  is visible (fixes issues with menu)
- update TODO.txt
Use variables in Info.plist.
Set default editor for OS X.