Cleaned up.
Added qunit and very simple testing for localStorage.

- Also had to implement and fix some parts of localStorage