clean up gradle build script, upgrade to gradle 2.0