Implement warning when navigating away from an unsaved Gistbook

Todo:

- [ ] Prevent history from updating the entry when we're not ready to move away