Added support for css class for selected elements

Selected items can now have a css class applied to them allowing, a state or similar sort of information to be communicated.

For some set of selectable items, when one has been selected I want to be able to set the background colour to green or red etc.