Lay some framework for versioning page state saved in local storage.
Add v2 format for saving page state in local storage.
Extract initPageStateDefaults from loadLocalPageState_v1.
Persist debug option in page state.