License fixes and dead code removal

Hi Paul,

here's a series which intends to add missing license statements in A3's source code. It's certainly not complete, I've only been working on those files marked by Debian's licensecheck tool.

Please see if it's OK to remove the *.bak files as done in 5aa8e8598c2.


HTH