Added localStorage support.
Merge branch 'master' into gh-pages