Refactor a findMatchingRole

Promises have a .all function that do exactly the same as you, without recursion.

https://www.promisejs.org/patterns/#all