WIP. Add procedure to merge duplicate events.

Continue to clean up more data.