new customActionLayerTreeCheck() for Customizations.js

This simple pull adds custom function that is called on each layer, when the user clicks on a check in the layerTree.

This is useful for complex actions, such as inserting the legend graphics into enabled layers in the layerTree!