Gut bacteria appears to play a key role in whether a body accepts a transplanted heart, according to a study.