Simplify Gruntfile again, fix sprite building (dist). Separate the build variations. Consolidate generation of buildUriPrefix in configure.js.