Added TerminalWidget

The widget displays a term.js Terminal object and connects it with the
given pty.