Entity handling. Finalised selection process.

Added processing to handle selected and deselected Entities. Use
separate style sheets to achieve this effect. Change Z order
accordingly.