Behind the scenes of the world’s largest religious pilgrimage is a strategically designed system of places to stay, things to eat, and ways to get around in order to get millions of Muslims moving safely in the same direction.