Add a build script to package.json for use by napalm.
Move r.js build file to src/main.