added localStorage support, added auto login
Merge pull request #4 from bcho/master

auto login