Cleaned license files and all .java headers

Created a script that puts the same header on every .java file, it's a standard Apache License header.
I can change it for another text if necessary.
Made few changes in the license files too.