HTML5 local storage to persist login (via token), remember opened tab and inventory pane.