The Spectral Geometry of Foliations