Basic dedupe script

Here is a script that runs dedupe across all of the data. Currently not
very well tuned.