Moved the velocity integration to the beginning of the update.

Without this update, the movement system would allow for jumping twice,
because before the jump impulse was applied, the entity would collide
with the ground again. Moving the velocity integration at the beginning
of the physics update step fixes this.