This commit reworks the protocol being used on top of websockets. It now permits sending input to the server, and interrupting the remote process.