backport #1300 to the 1.5-branch

add pyramid version and pyramid docs branch to the scaffold generation
machinery so it is available in scaffold templates, this will help
generate proper links in scaffolds and not confiuse people when
they go to documentation