Move mesh and material loading to Lua component

* Apply materials to meshes from Lua code