James Livingston, 1st Lord Livingston — Scottish courtier and administrator