WPF Save implemented.

Additional changes:
  1) Save creates the directory if needed
  2) On the saved tab, if you hit Run without a selected item, it no longer crashes