Allow deleting indexes in stats page
Initial support for index definition and terms