The Vaccine Alliance, Gavi, has signed a $5m (£3.5m) deal for an Ebola vaccine, to protect against future outbreaks of the deadly disease.