Some initial endianness stuff.

I still need to work out exactly what the Word-based compression
algs should do, and clean things up a bit.