Rename OFSocketObserver to OFStreamObserver and make it more general.