Add a util/exec interface for testing execs.

Peeled off from ip-per-service
Is there any way to make calling code do the type assertion? This looks like a panic which could actually happen at run-time, I don't like adding those.