Scientists have discovered how to turn agricultural waste and food scraps into a new global source of protein.