Build: Rearrange grunt/npm tasks into a build/dist/test pattern

Ref 76df9e4e389d80bff410a9e5f08b848de1d21a2f