Fixed stdio redirection within LLDB to "do the right thing" in all cases.

The main issue was if you didn't specify all three (stdin/out/err), you would get file actions added to the launch that would always use the pseudo terminal. This is now fixed.

Also fixed the test suite test that handles IO to test redirecting things individually and all together and in other combinations to make sure we don't regress.

<rdar://problem/18638226>


git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@219711 91177308-0d34-0410-b5e6-96231b3b80d8