Compatibility with Rails 4.0

As mentioned in f92f86307b424c29e8ab96c1a7d5f1805e745021, the app is using an unreleased version of Rails. Update rails, rack, and faye. Ensure that everything still works.