The acceleration and transport of electron populations in solar flares