disable accidental nav protection after publish

- enables accidental page navigation protected when a thimble project is loaded
- disables protection when a publish succeeds
- enables protection (if disabled) when changes occur to the code editor component