update Gruntfile.js for prepub/publish, config.js, bugfix for grunt newbranch