Snakes lost their limbs millions of years ago to become undulating, scaly tubes of muscles. Scientists are finally figuring out why.