Added closure syntax for configuration of security roles in ear files

Hello,

this is the second attempt of the pull request that contributes modifications for the EAR plugin. Please review.
For the complete history you should look at https://github.com/gradle/gradle/pull/149 .
(CLA has been sent to gradleware already)