Add a script to prepare moment for npm publish

Remove unnecessary files from repo for npm publishing. Fixes #1948.