Use EventEmitter instead of http.IncomingMessage

This is to pass tests on both Node 0.8 and 0.10.