CLC-3542 Fix a bunch of Rails 4 deprecations

https://jira.ets.berkeley.edu/jira/browse/CLC-3542