Set JavaScript data via element attributes for SegmentSelectorControl. Introduced new UIControl PHP class to function as base type for reusable controls (the analog of UIControl JS type).