Self-consistent Harmonic Theory of Solvation in Glassy Systems: Classical Solvation