Add a map-reduce utility function for services

Not sure about the name: the map function is a method of the traversed services, not a fixed external map function. map-reduce might create incorrect expectations?