indexer: Fix purging bug and refactor
indexer: Fix purging bug and refactor

Index.purge() used to delete even what has just been indexed from the
previous servers.

bbc2/porygon-ftp,bbc2/porygon-ftp,bbc2/porygon-ftp