Add support for Groovy

Basically allow the simpler Groovy closure syntax to be used with form upload module.

I do not know what are the guidelines for adding extra language support to modules so I've added the code to the same java class, any feedback would be appreciated.