Add RAT plugin to MAVEN build. Also adds licenses where-ever required.

build using maven.

and then 
mvn org.apache.rat:apache-rat-plugin:check
this checks all the licenses.