Add Apache file headers
Add .classpath

Since we already have .project, this is the other Eclipse specific file
that should be committed to source control.
Fix Checkstyle warnings
Remove duplicate code
Fix whitespace and formatting
Enable Travis CI build