Make the risklib able to read csv inputs

See https://bugs.launchpad.net/openquake/+bug/1154110