KFSTI-478 update licenses to AGPL for 5.4

KFSTI-481 update license headers

**This should reviewed carefully (as much as reasonable) before merging.**
Gotcha. I can't see anything else out of the ordinary but will give James a chance to look before this is merged.