TS-2155 New RAT exclude file, and cleanup

This creates a new RAT exclude file, using the regular expression syntax that
newer versions of RAT seems to like. This also cleans up some of the licenses
and adds a few where they were missing. No code / source was modified, so this
does not need to get backported.
TS-2155 Include the RAT JAR file in ci/.

This also excludes the ci directory from the distribution build
target.