Start refactoring DynamicScene material handling

Lots of brokeness, but have a new architecture in place.