Now semiidempotent.

Starts agent, deletes entities if exists, restarts agent.  I tried using procs to get rid of copy/paste, but they seem to behave strangely with send :-/