Importing GMF in XML format: step 1, parsing

The goal is to be able to import GMF from their current XML format into the table gmf_scenario (see https://bugs.launchpad.net/openquake/+bug/1160398). The first
step it to convert them into a text format suitable for direct import via a COPY FROM.