[WIP] Refactor of rake tasks

Working in progress for refactoring of the devutils publish and vendor rake tasks.
I actually prefer `map` over `collect`. Helps to reason if you're coming from a functional perspective: you're mapping some computation over a collection. `collect` is strange for me, since `select` and `each` are also collecting stuff from a collection, just not retrieving `collection.size` (all) elements.