netantho-105-ttl: refactor setupIndexTemplates.py and es-docs/inject.py to use a common module