Cyclotron auto resonance maser and free electron laser devices: A unified point of view