added a link to the extensions.rst file in the toctree
added check to pager template to not show last-page button if its the same as next-page
Merge pull request #1357 from sjopet/sjopatch

fixed toctree in docs, added check to pager template