Handling for PDF bookmarks and xspec tests

Added handling for generating `data-pdf-bookmark` attributes from section titles, which can be used to add bookmarks to PDF output. Example output:

````html
<section data-type="chapter" id="chapter01" data-pdf-bookmark="Chapter 1. HTMLBook Markup">
````