add apache license

add apache license for all .java files, .sh files, except for java files under src/main/java/tachyon/thrift/