Distinguish between read() errors and EOF.
Reduce loop delay to 1 ms.

This improves real-time performance in that deisplay update are no
longer queued when there are frequent tuning updates.
Implement server side connection management.

This changes adds proper handling og connect and disconnect events. For
the moment, only one connection is accepted.
Catch EOF events at client side.