Add a util/exec interface for testing execs.

Peeled off from ip-per-service
General comment on this test file: this definitely breaks platform independence. Did our tests run and pass on windows boxes before now? If so, we should probably talk about whether that's a desirable property before we remove it.