Six of the Middle East's wealthiest countries have come together to construct a railway that will stretch over 1,242 miles and better connect the region.