Tom,
<i>As Crisp pointed out, the photon could have been created from the electron's electric field. If that was the case, the electric field would have to be composed of particles that are traveling at light speed already. Unfortunately, I believe the electric field of an electron is stationary, so Crisp's idea would not apply.</i>
The electric field is not made of particles. I don't really want to get into exactly what a field is right now, though, so let's stick with photons. Photons are created from <b>energy</b> that the electron has for whatever reason. That energy can be electromagnetic or kinetic, or some other type. Photons are not created inside the electron, since the electron (as far as we know) is structureless and dimensionless. Instead, photons are created out of the vacuum using the energy of the electron. They are created travelling at the speed of light.
<i>You also stated that since a photon has no rest mass, it must travel at light speed. Why can't a massless particle just float around?</i>
I'm not sure exactly, but feel free to check on my statement if you doubt me. Massless particles always travel at the speed of light. I'm pretty sure there are relativistic reasons for that. There is no such thing as a stationary photon.
<i>If you don't take the creation of a photon into consideration, a photon decelerates as it enters a denser material, such as glass, then accelerates back to light speed as it exits the material. What force do you believe causes this acceleration?</i>
Photons do not accelerate or decelerate in glass. What happens is that photons are constantly absorbed and re-emitted by glass atoms. There is some delay between absorption and re-emission, which means the photons take longer to pass through glass than they do to pass through a vacuum of the same length. Between glass atoms, photons travel at the usual speed - the speed of light in a vacuum.