Use a utility function to get the config id or auto generate one specific to the class

Done for LabelGroup, LineGraph, Carousel, Image and CaptionedImage. Still probably should be done for button, sketch, legend, barchart, slider...