Fixes rst reference role
Updates code to generate index file for namespaces
Updates main toc to include namespace toc files
Adds namespace index template