Topics in supersymmetry and supergravity : applications to cosmology and scattering amplitudes