A Multi-Agent Framework For Power System Automation