Implement Gradle-driven build; adopt Maven dir layout