RES-1109 Changed rails version to 4.0.5 to fix security issues

- [ ] CR'd
- [ ] QA'd
- [ ] Dependencies satisfied
- [ ] Ready to deploy