Automatic translation import

Change-Id: Ia05fe11bb6d11b9970f8ad72cbb86cc4cc546442
Automatic translation import

Change-Id: I19220da41bc3100bf4ea63998efcdf0dd0253719
Add Apache license file headers
Add .classpath

Since we already have .project, this is the other Eclipse specific file
that should be committed to source control.
Update target sdk version to 20
Fix Checkstyle warnings
Remove duplicate code

This removes some duplication by moving common code to Utils.
Fix whitespace and formatting
Add Gradle build files
Enable Travis CI build