Emulate local storage and session storage using cookies for browsers which don't support em.