function HttpServer(host, port, requestHandler) {
            this.host = host;
            this.port = port;

            this.app = express();
            this.app.use(bodyParser.text({
                defaultCharset: "binary"
            }));
            this.app.all('*', function(req, res) {
                var oldSend = res.send;
                res.send = function(data) {
                    var buf = new Buffer(data, 'binary');
                    oldSend.call(res, buf);
                };
                requestHandler(req, res);
            });
        }
Implements a web server in node-webkit