Autosave

Adds autosave for previously created posts
Adds previews for posts
Adds JS alert when leaving a page with unsaved content