Setting up refreshLayers template, handling layer refresh events
Fixes and handling for insertChild layer refreshing
Proper layer refreshin
Actually calling refreshLayers