use env variable to determine the static dir (/app/ or /dist/); fix grunt ngmin usage; use grunt htmlrefs for angular script urls in production