Added localStorage polyfil

Added localStorage polyfill that makes the window object localStorage available in both modern and old browsers.

To use the polyfill please https://github.com/mortzdk/localStorage/blob/master/README.md