Accept optional command line arg to replace `npm test`

Also adds `minimist` to help parse command line arguments.
we could. we also need `npm` in the `publish/index.coffee` file. do we want to create 2 instances or just 1?