use fold/bind over Deferred.all (fixes #1)