Statistical Properties Of Undulator Radiation: Classical And Quantum Effects