Agent Coordination and Control through Logic Theories