added support for execution of commands in pseudo-terminal mode via chjj's pty.js and term.js