New research out of Ireland found that both caffeinated and decaffeinated coffee alter gut bacteria in ways that ease stress, lift mood, and in some cases, sharpen cognitive performance.