Replace simple socket-return with a simple HTTP-Response which makes the page work better in Browsers
Massaging the change.

There is no point in having a general-purpose HTTP handling code in this project, and the way the patch handles exceptions isn't how I would do it.  text/plain is preferable to allow the data to be processed by the remote client, and the patch wasn't escaping plain text to HTML anyway. "HTTPSession" is a misleading class name as it has nothing to do with HTTP session.
Merged pull request #9