Added proper saving.

Save button now works, and because I am too lazy to open up NetBeans I just modified the form file to add an event for the save button. Just fix it instead of blaming me.

Also prompts to save on tab close.

TODO: Prompt to save on IDE close, if there are unsaved tabs, confirm the closing operation.
Merge remote-tracking branch 'origin/master'