Scenegraph 2

Compiles and runs fine on Ubuntu. Please test on other platforms.