Add the beginnings of a debug module to make diagnosing io-streams issues easier.