Gain, noise and intermodulation in a nonlinear superconducting resonator