Fix Hacking 0.6 warnings

This patch fixes missing License headers, License header mismatches
and locals() being used in string formatting operations.

Change-Id: I721700fda746e78d36d29d0ed64bfeab61755fb3
Merge "Fix Hacking 0.6 warnings"