Add copyright headers *before* package statement
Remove duplicate blank lines
Update licenses & copyrights for broken projects

This change also fixes some misplaced author tags.
Fix misplaced package statements

This change also removes invalid license blurbs from various files, and
cleans up a few other minor header-related issues.