Councils of government, or cogs, were created by the state legislature for what purpose?.