handle piped input

these changes permit one to pipe input into novaconsole, e.g:

    echo ls | novaconsole my-server

novaconsole now knows about the '--close-wait' (-w) option, which
controls how much time it will wait for remote output after stdin has
closed locally.