Add simple buffer protocol for asynchronously dealing with non blocking,
buffered reads and writes from a socket channel.