Fix the GMF export and tables

This pull requests cover two tickets:

1. make the export of the GMF fast: https://bugs.launchpad.net/oq-engine/+bug/1169078
2. remove the need for the aggregation and remove the useless tables: https://bugs.launchpad.net/oq-engine/+bug/1187413