Removing the unused Index enum.

-- Also modified the InitStateHolder to take an iterator which works well with filtering by interest.
-- Provided a shutdown() on registry so that we can simulate end of an index.