Clean up server-client setup and resource db API
There's sort of two things here, there's
serverClient and there's the server's spot in the resource database.
InitClientResources() is doing two things, both setting up the initial resource types (when first called) and allocating storage for resources, these should be split up.
I think it might make sense to move
clientTable mostly out of static storage and into each
ClientPtr, just as a general "have fewer indexes as API parameters" kind of thing. This also means some APIs need to start taking a
ChangeResourceValue() (imagine running two displays on different ports, their res dbs shouldn't collide).