Use ancestor elements in the generated HTML and CSS

This commit is intended to fix issue #8. Ancestors up to (but not including) BODY are collected into the generated HTML and CSS (if BODY is selected, then all ancestors are collected, but sanitized away from HTML if the option is checked).