Merging refactoringbuildindex into master

This covers all the changes for allowing avherald to exist alongside the Wikipedia history code (although avherald is still in a separate branch as of now). There is a lot of refactoring and a new system for doing span replacements in description HTML.

This covers part of #85 and should finish several other issues. The rest of #85 and #90 will be the next step.