Art historians, architects, engineers and master artisans spent six years restoring a 14th-century royal palace and turning it into the coddling nine-room Riad Fes Maya at the medina’s edge.