Since their meteoric rise in the 19th Century, railways have been at the forefront of modern engineering and transport. They have conquered dizzying altitudes, wilderness, seas and cities.