added WAR module and improved gradle build process