This is an early draft, it definitely needs polishing. Feedback on the general design welcome. Notice that users will need to reindex manually after changing the set of indexed headers.