[wip] Upgrade to Rails 4

TODO:

- [x] Update dependencies
- [x] Update all generated code to be Rails 4-esque
- [x] Get tests passing
- [x] Resolve deprecation warnings
- [ ] Verify deployment works