add optimization script with r.js to minify application and vendor components