Implement a debugging TCP server interface.

Fixes #2.