openscenegraph/osg_tileset: lots of refactoring