Dense inhomogeneous fluids: Functional perturbation theory, the generalized Langevin equation, and kinetic theory