Now the ccHocject can handle its icon and other proposals

I've inserted here some changes I needed for my plugin-work... In particular I added a getIcon method which handles the icon displayed into the db tree view... this may be out of the CC-philosophy, so please review.

Many thanks 
Luca