Added license notices to several Lua files.

The Lua files under dat/ai (or at least the ones I checked) didn't
have any commit history, so I had to do without adding copyright
notices to them.