Refactored resources and gradle build files.