Re-enable duplicate event detection.
Fix bug with dup detection that was causing way too many events to be checked (should make uploading considerably more efficient).