Restructured application to be more inline with Gradle/Maven builds.