File: Evaluation Delivery

This /delivery directory contains various files used in delivering Demeter online
for user evalution.  I used Zag for this, and so I tweaked Zag a bit
in order to run as a JNLP applet (rather than application) and to send
the user input log saved by Demeter back to the server for later evaluation.

Therefore, there are the following files...

* AppletMain.java - A conversion of Zag's org.p2c2e.zag.Main 
  to run as an applet.
  
* Stream.java - A tweak of Zag's org.p2c2e.zing.Stream to save the contents
  of the input stream in a StringBuffer to send back later.
  
* TextGridWindow - Fixed a small thread deadlock bug that would cause Demeter's
  talk menu to intermittently lock up Zag.
  
These were hacky tweaks specific to how Demeter works, rather than a graceful
conversion or developement of Zag!


I compiled these new files into a new Zag .jar file (named demeter.jar, 
though), remembering to set -target and -source both equal to 1.4 in order
to support older systems (such as Macs, which don't always have the latest
Java version).

>  jar cvfm demeter.jar MANIFEST.txt anakata com micromod org

I signed this with jarsigner (after using keytool to produce a key pair).

> jarsigner demeter.jar zach

Then I could deliver these through an html page using the given demeter.jnlp.


To handle the serving and the storing the returned content, I wrote

* demeter.py - a Python cgi script to produce a userID, generate an 
  appropriate .jnlp file, and then serve an HTML file containing the applet.
  Also handles saving the returned contents to a file.
  