Change to gradle build system, start 1.7.2 update

Merge of ad57c804cabdbea8eddb4c568e0ec273c2cfb53f and
f2e4a4f57348f6beec88723a00bfc5bb4b91ff8a