Spectral Theory and Shifted Convolution Sums in Analytic Number Theory