Switched to Gradle build system.

Gradle can generate Eclipse projects so we don't lose anything.