Bug 1093929 - Improve grunt tasks and add additional options r=jaoo

TypeError: redeclaration of var ```metricsConfig```. Just once please.

nit: missing ```;``` after statement;