Move the Gradle build system, providing 'flavoured' apklibs for maven-android-plugin compatibility