Gradle: fix compatibility with Gradle 2.0
(cherry picked from commit 84cd616)
Gradle: war facet web roots importing fixes -
IDEA-126544 Gradle WAR: Empty directories in 'war' are not included during import
IDEA-126545 Gradle WAR: Resource directory in 'war' with 'into' closure not imported
(cherry picked from commit ba1bfd0)