Fix whitespace and formatting
Add Gradle build files
Enable Travis CI build