Scenegraph

Opening this PR for discussion; not ready for merge.
A while ago I had prepared a branch that merged only the gloo-related changes from the scenegraph branch.. I'll try to resurrect that branch and start a PR off of it; that way we can work on merging the difficult parts in a more focused PR.