This splits indexing into two phases:
* preindex (where only pages, space lua, space styles are indexed)
* index (where everything else is indexed)
The goal is to get to more-or-less operational state quicker this way,
because probably most functionality can already be enabled after the
pre-index phase.
This was resulting in a nasty race condition where plugs would sometimes reload (e.g. during an upgrade) while also indexing content, which would then fail.