Add Json Closure to Application.generate()

In response to https://github.com/ghale/gradle-glu-plugin/issues/1