moved some of the implementation-specific protocol code into the Server lib, more feng shui