A sessionStorage and localStorage wrapper