WIP: add wrapEmitter

add @creationix's beginnings for the wrapEmitter
fixup codec test
Test the whole emitter wrapper in code
Merge branch 'codec.emitter' into tls.connect