Added "?local=LOCAL_FILE" to URL bar

Added support for local files showing up in URL bar. Can't load from
refresh yet. Modifications mostly in loadScriptsFromFile.