added history.js package

& started to implement preserving the history on back/forward button
press etc