indexer: Fix purging bug and refactor

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