Basic scenegraph inspection features.

Very basic, currently static, with some not working code for automatic
refresh of the tree, some stupid dead code and many stupid printfs.
Refresh scenegraph dynamically.
Synchronize item and scenegraph selection.