Initial XFT support.

Breaks XDR support for now, it should be possible to merge the two
branches at some point.
Doesn't export texture coordinates.
Clean up code a little
Get rid of annoying dos endings
Merge xdr and xft, add support for xdd