Getting aid to countries before the storm or drought hits is one response increasingly being used to limit the damage.