Add a util/exec interface for testing execs.

Peeled off from ip-per-service
Move this comment up to join the comment on the type, so that it will show up in godoc.