Moving things around to make a Gradle compatible android-library which produces an .aar file as output.