Add a small fd_array abstraction.
Support multiple master fds in the terminal emulator.

Notably, sshd does this, and we need to be sure to grab all of them.