Autosave

Adds autosave for previously created posts
Adds previews for posts
Adds JS alert when leaving a page with unsaved content
Any reason to use setTimeout instead of setInterval? If we use setInterval, then the saveForm method doesn't need to know anything about resetting the timer.