Move pty into TerminalControl
Make Pty and TerminalEmulator objects local to TerminalControl