Implement merging of train trips

Authored by vkrause on Apr 7 2018, 4:35 PM.