move index.js file
put server configuration in Constants.js
add r.js build conf file