Fixing bugs.  Now this actually runs.  (although theres a weird error on the response.write.  Ill figure it out later.