Migrate to Gradle

That was fun.