indexer: legacy admin pages fixes

* Solves circular imports inside `legacy/websearch/templates.py`.

* Fixes legacy admin pages. (closes #2190)

Signed-off-by: Esteban J. G. Gabancho <esteban.gabancho@gmail.com>