The transition which could replace the word thus in this sentence is definitely consequently. Workers bravely set dangerous explosives in the mountains by hand to make passes for railroads, and consequently hundreds lost their lives.
A flashback is when something is remembered from the past. And a flash forward is when you like make a video go to like the next seen or something like that.