Add a "clicked.autotoc.patterns" event that is triggered after the standard "click" event has been processed.
Add a test to check the scroll happens when clicking the Table of Contents links.

- Listens to clicked.autotoc.patterns
- Updated the initial HTML to space some of it out so that a testable scroll actually happens on click
- Only works in non-PhantomJS browsers, as PhantomJS has infinite height windows. See https://github.com/ariya/phantomjs/issues/10162