Remove all global state in the client, at least everything we care
about and make the code depend upon an explicit state map. The rest
will follow by removing volatile-state.
Port Chas Emericks friend example code for user management on server.