Convert build system to use gradle.

If you're not familiar with gradle, use the gradle wrapper: ./gradlew assemble

(I tend to just kick off gradle tasks via IDEA. It Just Works.)

This is preliminary, until there's a real fix for anything I won't create a new version. This does pass tests.