model: Implement tangent math for meshes with tex coords

Normals and tangents are now calculated for imported ply
models. If there are no tex coords available all tangents
remain 0.