Moved Mesh rendering to MeshBuffer class. Some additional refactoring.