Refix app templates make out-of-the box grunt for non-AMD work

The recent update to jshint 0.4.3 means that grunt no longer works out-of-the-box for non-require-amd builds. These commits fix the globals definitions to use comma-separated lists and remove a blank line from the generated Gruntfile.js.

[This is a single feature pull-request, zeripath/master already contains these commits]