An X-ray Perspective on the Evolution of Galaxies