Added the ability to store data in the session storage and fixed cookie storage to be run through JSON too