Dynamics of the fractional oscillator