Move DockerLocalConn and terminal functions form package "main" to "rcli" in order to be able to use DockerLocalConn in commands_test.go
Use io.WriteCloser instead of *os.File in DockerLocalConn so we can use it with standard writers and pipes
Edit the tests for them to use the new command API. Disable TestRunHostname and TestAttachStdin.
Improve error management (avoid unwanted output in tests)
Reenable CmdRunAttachStdin and CmdRunHostname now using the DockConn interface
Merge pull request #1 from dotcloud/optional-raw-mode

Optional raw mode - unit tests