Optimize single byte access.
Extract magic constant.
Fix EOF behaviour, add READ-SEQUENCE.

With this we still can't buffer on the reading side, but it's better
than nothing.
Don't use LOGV.
Add a maximum buffer size and honour it.

Needs cleanup, but works fine.