Weighted stack implementation.

Also standardized the stack variable name

added outputdepth key

removed awful multiple-pagestyle stuff
ignore PDFs
Making my own at-begin-page hook to handle stack management.

Then I can use it to update the stack with the /current/ values of
/part/chapter/section references.

Also, ignore Heiko's tex file (personal study)