improvements for r.js build, added r.js and build configuration to repo