Set up localStorage to use a similar api to that of chrome.storage