Refactored and upgraded local_store.js
Added spec for local_store.js
Merge pull request #1018 from lonelyplanet/bart-refactor-local-store

Bart refactor local store