Moved material library to a per-object level, as sharing across objects wasn't working well. Alternative would be a smarter material library, but given that we are storing color data I don't think it's a crucial item. The case where it will be a problem - texture loading - will have a more optimal solution of a texture library indexed by image name.