JSON Cookie working!

upload.jsp now sets a cookie containing the JSON Object. This can be
used by index.html to display source code and errors.