Initial implementation of localStorage support.
Finished localStorage implementation. Now for some tests.