The evolution of cosmic ray electrons in the cosmic web: seeding by AGN, star formation and shocks