This makes gotty-client still work.
Using zmodem (rz and sz commands from lrzsz) you can now send and receive files.
Input chunks from the client exceeding the buffer size would get truncated. Now we communicate the size of the buffer to the webtty and it will split the input into buffer sized chunks. Fixes #1.