duplicates: refactoring and empty-ID fix (#278)

The main change here, aside from documentation/naming updates, is that we skip
"duplicates" that arise from albums/tracks that are missing their MBIDs.