More editor work

-Tab closing
-Tab saving
-Checking unsaved changes
-Modifying menu items to reflect their viability given the current
content state
-etc