Add a util/exec interface for testing execs.

Peeled off from ip-per-service
It fixed on site, trading one unreadable aspect for another, but sure.  Done.