Overload Application.generate() with a json closure
Remove deprecated warnings