Improve gradle build, integrate with Travis