Long distance rail travel looked like it could be on its way out just a few years ago, but a lot has changed since then.