First attempt at writing out some useful files.

This is quite slow, seems to use way too much memory for some reason,
and reveals at least one bug still remaining in the grammer (probably
in <zonedata>).