Tidying up dev/prod Grunt mode and getting config vars in plugins.