add localstorage for user related vars
disable localstorage if browser doesn't support it

we can add cookie support later
Merge pull request #24 from emoose/patch-3

add localstorage for user related vars