Why galaxies care about AGB stars: their importance as actors and probes