Rework plugin and use the Gradle 2.0 plugin API.