Add a util/exec interface for testing execs.

Peeled off from ip-per-service
Well, it will help one conversion, anyway.