misc fixes

- removes a global
- node style callback
- return stream so users of client can `end()` the connection:

```js
var stream = client.upgrade({
  port: port,
  host: host
}, function (err, data) {
  console.log(err, data)
  stream.end()
})
```