A simple localStorage wrapper.