At a time when many Scottish universities are struggling financially, with Dundee putting 600 jobs at risk, we look at where St Andrews gets its income.