Need  to persist to both htmlStore and lsStore.
Fix to order of arguments on saving content/history.
Minor fix, and it works even if in a very lame way (have to touch every file for it to go to localStorage and thus survive refresh).