Avoiding track repetition no longer uses track ids, it now uses name and title of song. One can't use ids because the spotify ids from echonest aren't the same as the spotify ids inside spotify for the same song.
Function for htmlentities added.