Wiki's core javascript is coded as client and server parts which are bundled together along with a multiplexer that organize virtual hosts for many sites in a wiki farm.
You may have moved quickly into the steam tunnels of federated wiki. A colleague did and wrote asking some detailed questions without much context as to how the server got to where it is. Here is the story.