Initial implementation of automatic index rebuild
Fix -- initial navigation state was not being displayed because the navigation tree was usually rendered after the initial page was loaded.