Coherent control of the dynamics of a single quantum-dot exciton qubit in a cavity