Architecture and functional specifications of distribution and transmission control systems to enable and exploit active demand