Rewrite index stage support to be slightly clearer

* Introduce "toc" (table of contents) concept that is like an index but without stages
Tick off todo