Refactor task.finalize()
Merge singleton and album lookup stages
Merge duplicate detection into find_duplicates method
Add resolve_duplicates stage