A wrapper around the localStorage and sessionStorage APIs