Update Gradle wrapper to 2.2.1. Android plugin to 1.0.0-rc3 and use JCenter instead of MavenCentral to avoid maven indexing.
Add sourcesets to the extension to allow configuration.