Partial merge of Michael's DRRPP work, add deduplicators for
project_hazard & project_theme link tables (not called for nested
resources yet)