He began by finding ways to automate the work he disliked. Now Norfolk Southern’s CEO is trying to remove a much larger inconvenience: the handoff between two American railroads.