Legendre Functions, The Hilbert Transform and Surface Waves on a Sphere