A hidden network of rooms and passageways extends throughout central Edinburgh like an underground city.