Set up much of the base of the client protocol module