add three scripts

Kurik Amudnil's script `exportmaps` with minor spelling fixes;
`log-region` with an extra test to catch the nil value error and only
run in fort mode.  New script `exportlegends` (closely related) which
exports the map/gen info, xml, and all detailed maps.