Changed DmgState to have a foreign key to OqJob, not to Output; also removed the CollapseMap special treatment

https://bugs.launchpad.net/openquake/+bug/1100371