Fixed SlaveProtocol to give a message to ProtocolError().
Added the class to encode.
Added methods to write a datum.
Enhanced Slave class to send opened file descriptors.