CSS popover visibility now depends on component selection state
Made closing of the code editor explicit so changes won't be lost
Applies custom classes to components, observes model

Model is observed for correct stylsheet and class state