In the 19th century, the railway transformed Swindon from a small market town into an industrial giant.