Generalized unitarity and one-loop amplitudes in N=4 super-Yang-Mills