Implement tunnel chunking.
Fix #9 and also partial send/recv discards on timeout.
Minor message fixups.