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.