New research reveals why barn swallows are declining — and how our barns may be part of both the problem and the solution.