RAT Cleanup, Resulting LICENSE fixes

Also:
- removed unused minimal javascript
- relocated storage test datagen package to hyracks-test-support
- eliminated MiniDFSCluster writes outside of target
- clean up .gitignore
- add line comments to PigletParser (taken from SQLPP.jj grammar)

Change-Id: I029dee65ac6b1d7ab7bddba66257a4857f682caa
Reviewed-on: https://asterix-gerrit.ics.uci.edu/1468
Tested-by: Jenkins <jenkins@fulliautomatix.ics.uci.edu>
BAD: Jenkins <jenkins@fulliautomatix.ics.uci.edu>
Reviewed-by: Till Westmann <tillw@apache.org>
diff --git a/hyracks-fullstack/hyracks/hyracks-dist/pom.xml b/hyracks-fullstack/hyracks/hyracks-dist/pom.xml
index 73086cd..b88d292 100644
--- a/hyracks-fullstack/hyracks/hyracks-dist/pom.xml
+++ b/hyracks-fullstack/hyracks/hyracks-dist/pom.xml
@@ -50,7 +50,7 @@
         <executions>
           <execution>
             <id>copy-scripts</id>
-            <phase>package</phase>
+            <phase>generate-test-resources</phase>
             <goals>
               <goal>copy-resources</goal>
             </goals>
@@ -61,7 +61,6 @@
                   <directory>src/main/resources</directory>
                 </resource>
               </resources>
-              <directoryMode>0755</directoryMode>
             </configuration>
           </execution>
         </executions>
@@ -73,7 +72,7 @@
         <executions>
           <execution>
             <id>process-test-classes</id>
-            <phase>package</phase>
+            <phase>process-test-resources</phase>
             <configuration>
               <target>
                 <chmod file="target/appassembler/bin/*" perm="755" />
@@ -85,6 +84,16 @@
           </execution>
         </executions>
       </plugin>
+      <plugin>
+        <groupId>org.apache.rat</groupId>
+        <artifactId>apache-rat-plugin</artifactId>
+        <configuration>
+          <excludes>
+            <exclude>src/main/resources/conf/master</exclude>
+            <exclude>src/main/resources/conf/slaves</exclude>
+          </excludes>
+        </configuration>
+      </plugin>
     </plugins>
   </build>
 </project>