Use gradle build system
Some optimization
Change to use gradle on travis
Update for travis status image