Time Dependent Modeling of Electron Acceleration and Cooling During Blazar Flares