Added serialization/deserialization code to meshes.