James Drummond, 1st titular Duke of Perth, 1648 - 1716. Lord Chancellor of Scotland