Testing fixes

Tests now work because
- Instantiation of the stores now happens inside the dispatchers `getStores` methods. Jest does not like module to be instantiated as part of the module creation or require process.
- localStorage is now abstracted inside a module `utilities/local_storage` so that jest can mock.

Note that even though jest claims to mock modules by default, it seems to not mock modules required inside of modules you are not mocking. In these cases you explicitly tell jest to mock a module.