move pre & post publish scripts into Makefile

prepublish gets run during `npm install`, which can screw stuff up
see issue: https://github.com/isaacs/npm/issues/3059