Fix for rendering rst files in tool shed repositories.
Bug fixes and simplification for popup menu links.