localstorage a util class to implement the function of local storage, including the html5-supported broswer and ie6,7