Theory of the Spin Susceptibility of an Inhomogeneous Electron Gas via the Density Functional Formalism