Initialize localStorage.