Francois Gouget : testbot/TestAgent: Use the new wait() RPC with the timeout parameter if available.