Added supper of AMD and Node.js (via browserify) environments
Added package.json
merging pr #154