An Agent-based Application to Enable Deregulated Energy Markets