Fact can be as dramatic as fiction, as I discovered during my research for a new book on Edinburgh’s turbulent financial history. The archives revealed a fascinating story of the unscrupulous side of Scotland’s great novelist. And how he would redeem himself.