Making local files work properly with URL bar

**Not Ready to merge**
Trying to make local files work with URL's to show "?local=LOCAL_FILE" when you load a file as per #567 
- [x] URL changes.
- [ ] Properly handling refreshing with a "?local" URL

URL interacts properly with:
- [ ] changing something (the URL remains the same)
- [x] examples
- [x] other loaded files
- [x] new script