Lie Pseudogroups and Locally Homogeneous Riemannian Spaces