An experienced educator with a track record of whole-school transformation has been appointed as the next Headmaster of one of Edinburgh’s most prestigious independent schools.