move exports statement(s) outside api script.

Use gulp to build the project.
Add browserify (browser versions in ./dist/)
Add standalone browser ouput to ./dist/
Add amd version output to ./dist/