An X-ray View of the Cores of Galaxy Groups: Effects of AGN and Mergers on the IGM