Create build process for example

Create Gulp build process for example, refactor example scripts to be
CommonJS modules.