Added Table of Contents script for notebook

Simply builds a table of contents in a iPython notebook with all the
<header> tags in the DOM.