mpigsley/ProjectV — pull request #66 by mpigsley (2014-10-25 00:14:13+00:00)
Title: RequireJS Optimization

## Description
Since our pages use requires heavily we need to use r.js to optimize it for production (and testing). Since r.js copies the entire folder to to a new optimized folder, I removed javascript bower and versioned all our javascript libraries. I also tied the optimization tool to `vagrant up` so that the optimized folder is created on vm creation.

The command to optimize the code from the project root is `node public/scripts/lib/r.js/r.js -o public/scripts/app.build.js`.

### Testing Considerations
* [ ] Ensure pages work like normal when optimized folder doesn't exist
* [ ] Ensure r.js compiles app.build.js correctly
* [ ] Ensure url parameter opt=true, when set, uses optimized code
* [ ] Ensure url parameter dev=true, when set, uses non-optimized code