Add grid as dependency for agentcontroller and agentcontroller_client