Move mappings to the Plugin. They're global and static and have nothing to do with the tree being indexed.

Introduce separate jigger for analyzers, which get sent to ES separately from the mappings.
Materialize post_build hook.

It's the best place for global analysis.
Update the docs (and thus specs) for TreeToIndex and FileToIndex after sketching out the bit of framework that does the multiprocessing.