overhaul. speed up. clarity down.

rewrite of the whole thing..

sadly readability went south,
but speed went up.

mysql-import seems to be especially happy when each INSERT INTO-line is
about 800k long.