ESM file reading/writing support. Part one.
Use four-char integers in direct (big-endian) ordering.
Use FOURCHAR macro instead of hard-coded ASCII.