Support for waiting until an agent has started up.

AgentRuntime now has a waitForAgentStart(String agentId) method which
blocks until the agent with the given agentId has started up.