Switch to the Gradle build system.

See issue #1 for details.

This commit only changes the core, desktop, and Android projects. The
HTML and iOS projects will fail to build until they are updated to use
Gradle as well.