Adds wrappers for the localStorage and sessionStorage objects for true persistence.