A Cognitive Architectural Approach to the Institutional Roles of Agent Societies