agent: use /api/v0 prefix on all routes, per spec
scheduler: improve remote agent state machine semantics