Implemented better mesh memory management. Made Mesh.loadMesh() actually return the loaded mesh.