Hi,
for your Todo:
have a look at https://github.com/localForage/localForage
You could store your entire application state in browser local storage. Localforage is nice because it provides graceful degradation depending on what storage options user's browser supports.