Use channels in terminalio and simplify the implementation a bit.
Use channels to implement the terminal and iframe request handlers.