Fix issue when attaching stdin alone
Make DockerCli use its own stdin/out/err instead of the os.Std*
Make term function consistent with each other
Make NewDockerCli handle terminal
Implement regression test for stdin attach
Add missing fprintf instead of printf
Merge pull request #1005 from dotcloud/1004-stdin_piping-fix

- Runtime: Fix issue when attaching stdin alone