Nonlinear optics with coherent free electron lasers