Finally figured vertex ordering and normals out.

This reverts e6d0292 and writes out meshes in reverted vertex ordering
which seems to be necessary.