Code cleanup: URL generation

Attempted to cleanup the code that is used when generating potential URL's for reqs.  Additionally, it appeared that version-specific URL's were only being generated for the primary index.  I modified the code to ensure that these URL's would be generated for the extra indexes as well.