It took thousands of years to develop the world's extraordinary range of domesticated farm animals—an estimated 8,800 livestock breeds across 38 farmed species. But this diversity is dwindling fast.