Use window-independent atob and btoa
Use SessionHistoryInternal.deserializeEntry()