Noise and loss in superconducting resonators