Adding save/load state file, based on webmapper code.