Short: Build rails, place one or two tunnels, take train into tunnel and connect tunnel entrances.
It's a bit "no userfriendly" at the moment, and also very fragile. As soon as it is stable enough I will try to give it the same features as mods like pipelayer and beltlayer, including blueprint support.