Long-distance bird migration is one of the natural world’s most inspiring phenomena—and how we learned about it is just as fascinating.