Add support for cleaner TOC titles.

I'm not the most familiar with best practices for node.js, so bear with me on this pull request.

I wanted the Table of Contents to show the proper headers for the pages rather than the filenames. To do this I just run through the files in a prep pass to get the file titles. I then pass all of these titles to the templates so that they can render the nicer TOC.