Compactness of the Chow scheme: Applications to automorphisms and deformations of Kahler manifolds