I fixed two bugs in c2s wicht prevented C2SStream.prototype.onRegistration:
1. A variable username that didn't exist was called
2. The register event was not emitted properly
Variable username doesn't exist
Merge commit '6f1c927118cb027956db5133b8c1a43fb37bea5b'
Fixes emitting of "register" event
Thanks. I cherry-picked your commits as the sasl branch is incomplete.