Add incremental reads and loads of debugging tools

Strange problems with processes not exiting and sockets not
being right. Going to try a different os.