Add clearStorage.
Have to patch window.localStorage.length and restore too.