Add node/AMD/browser export code
Add gitignore
Add package.json, using mocha as test framework