Cavity resonator free electron lasers as a source of stable attosecond pulses