detach controlling terminal in child to prevent SSH from reading from /dev/tty
- revamp logic for determining nstreams
- negotiate nstreams with remote end
- improve startup robustness/graceful failure