Added EventEmitter support and a bunch of HTTP asserts