exp/ssh: simplify Stdin/out/errPipe methods
exp/ssh: simplify Stdin/out/errPipe methods

If a Pipe method is called, return the underlying
reader/writer from session.clientChan, bypassing the
io.Copy and io.Pipe harness.

StdoutPipe and StderrPipe now return an io.Reader not
an io.ReadCloser as SSH cannot signal the close of the
local reader to the remote process.

R=rsc, agl, gustav.paul, cw
CC=golang-dev
http://codereview.appspot.com/5493047

Committer: Adam Langley <db68fba232b2c49ed3e9d3081df349dde7b61dfd@golang.org>

sanjosh/sanjos100-tipc,Triskite/willstone-goclone,Triskite/willstone-goclone,rdp/rogerpack2005-golang,mhennings/marcohennings-go,rdp/rogerpack2005-golang,webfd/go-zh,sanjosh/sanjos100-tipc,d0f/go-zh,rflanagan/reginaldflanagan-project1,rflanagan/reginaldflanagan-project1,glycerine/jeaten-go-arrayof-structof,scirelli/scirelli-go,scirelli/scirelli-go,glycerine/jeaten-go-arrayof-structof,rdp/rogerpack2005-golang,d0f/go-zh,scirelli/scirelli-go,bryanxu/go-zh,bryanxu/go-zh,mhennings/marcohennings-go,webfd/go-zh,bryanxu/go-zh,Triskite/willstone-goclone,d0f/go-zh,scirelli/scirelli-go,rflanagan/reginaldflanagan-project1,mhennings/marcohennings-go,rflanagan/reginaldflanagan-project1,bryanxu/go-zh,bryanxu/go-zh,glycerine/jeaten-go-arrayof-structof,mhennings/marcohennings-go,mhennings/marcohennings-go,glycerine/jeaten-go-arrayof-structof,webfd/go-zh,d0f/go-zh,bryanxu/go-zh,scirelli/scirelli-go,Triskite/willstone-goclone,sanjosh/sanjos100-tipc,Triskite/willstone-goclone,mhennings/marcohennings-go,d0f/go-zh,rdp/rogerpack2005-golang,scirelli/scirelli-go,bryanxu/go-zh,glycerine/jeaten-go-arrayof-structof,webfd/go-zh,d0f/go-zh,rdp/rogerpack2005-golang,rflanagan/reginaldflanagan-project1,glycerine/jeaten-go-arrayof-structof,rflanagan/reginaldflanagan-project1,webfd/go-zh,Triskite/willstone-goclone,scirelli/scirelli-go,sanjosh/sanjos100-tipc,d0f/go-zh,sanjosh/sanjos100-tipc,scirelli/scirelli-go,mhennings/marcohennings-go,glycerine/jeaten-go-arrayof-structof,sanjosh/sanjos100-tipc,mhennings/marcohennings-go,Triskite/willstone-goclone,webfd/go-zh,sanjosh/sanjos100-tipc,glycerine/jeaten-go-arrayof-structof,Triskite/willstone-goclone,webfd/go-zh,bryanxu/go-zh,rdp/rogerpack2005-golang,webfd/go-zh,rdp/rogerpack2005-golang,rflanagan/reginaldflanagan-project1,d0f/go-zh,rdp/rogerpack2005-golang,sanjosh/sanjos100-tipc,rflanagan/reginaldflanagan-project1