(for prev commit) Added autosave

Forgot to mention: Page now autosaves, no warning on exit
Fixed autosave on exit