Fix a lot of licensing text.

This adds attribution to the .tex files and a number of missing
copyright blocks to others.