Self-consistent 3D modeling of electron cloud dynamics and beam response