Warning message when closing with unsaved changes.

Honestly I just want to get rid of the command line window in the
background, so I'm surfacing all of that into GUI windows. Next is the
save to server procedure, though tbqh that probably needs a huge
overhaul anyway.