Updated code to Gruntjs standards and allowed ref: with external URLs:

Hi,

i've updated the code to reflect latest gruntjs standars (options and files management) and fixed an issue of the task failing when production URL is external (i.e. starting with :// or http://)