Added data storage mechanisms (via localStorage) and tests.

Using buster.js for tests.