Make s3sign work with nodejs

- Conditionally include CryptoJS depending on
  where we are running.
- Add module.exports for s3sign
- package.json for npm