Adding build and r.js

added build scripts and restructured file organization