Revert "Partially revert "Add TTY(RawFD) for non-STDIO tty's""

This reverts commit a8afc536eabc7df851d3ea966173d40f6e1ec387.
Add redirection functions to base for #3823
Rename NamedPipe => Pipe