multi-pool support, workers keep connection state

- each instance connection can be tied to its own pool of workers
- workers keep connection info in local state
- workers can update authorization token from login servers via gen_event
- base work for persistent connections to server