Saving and loading files from local storage. Needs to separate from the browser-saving code.