Implement dedupe and expandurls commands