Use double quotes consistently in Gruntfile
Remove build artefacts and mask from git
Limit line length in minified JS files
Separate uglification into different targets

This makes it simpler to fix lint errors on one or two files
at a time, rather than trying to cope with lots at once.
Add basic test infrastructure
Fix typos and files missing from 'can edit' list
Clarify that minfied ui does not include appframework core
Fix double/single quotes in appframework.js
Fix most lint errors in appframework.js
Clean up other functions and loops for lint