restore addLegendLayerAction and related functions after legend redesign
[layertree] move implementation of legend actions to QgsAppLayerTreeViewMenuProvider