restore addLegendLayerAction and related functions after legend redesign

the member names are not compatible with the new legend classes, but I didn't want to break the api