alert box to warn user they have unsaved changes
cherry-picked unload message code change
Merge pull request #2079 from Stanford-Online/giulio-unload-msg-1784-2

Resubmission of "Unload Message Pull Request"