Theory of Cosmological Perturbations and Applications to Superstring Cosmology