Initial implementation of localStorage support.

Finished localStorage implementation. Now for some tests.

Added some tests to the localStorage feature.

Finished unit tests for localStorage feature.

Updated coverage.