Rework history as singleton
Centralized state manip
Protect more styles
Centralize postMessage