unsaved changes warning, mostly fixes #30 except from the result of pressing 'New'
upgrade to codemirror
handle the new button, URL changing when you press the new button and the unsaved document warning
Merge branch 'feature/unsaved-document-warning' into develop, closes #30