X-rays and electrons: An outline of recent X-ray theory