A year before the 2011 Holyrood election, it looked like Iain Gray would be FM.