Midair collisions, on-board fires, a fatigued fuselage that turned a plane into a high-altitude convertible—out of these tragedies arose major technological advances in flight safety that keep air travel routine today.