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

Ref 76df9e4e389d80bff410a9e5f08b848de1d21a2f
Ref https://github.com/jquery/jquery/pull/1949#discussion_r22042517
Ah, OK then. I must have remembered sth incorrectly.