After 40 years St Andrews is a step closer to rail travel