fix(network/tcp): fix misc bugs and brokenness

A number of small fixes:

- Fix syntax errors breaking string interpolation
- Don't use @socket within promise resolver
- Use EventEmitter#once rather than on/off
- Replace EventEmitter#off with EventEmitter#removeListener