Replaced RPC remoting with plain sockets and length-prefixed XML.