Merge pull request #2 from sgillespie/master

Add Json Closure to Application.generate()