The surprising history hidden behind the walls of the iconic royal residence, beginning in the late 18th century when the building came into royal hands.