Improve localStorage management by adding the "pre" command for plugins.
The "pre" function call should be called by a "splash" page for the replay.
This allows it to rewrite localStorage (or perform other actions) before
the replay page is opened, avoiding race conditions and other timing issues.
Added hashchange and end-of-replay events
Commit updated scripts in dist/