Wrapper around the localStorage API