change how index templates are registered to address relative namespace lookups
Add support for #root alias