Gradle changes to support deploy to maven central

This relies on the gradle-mvn-push script by Chris Banes. Updates can be
pushed to maven central with gradlew clean build uploadArchives.