Add connection failure callback and refactor View#update javascript to replace element in place instead of only innerHTML to properly replace entire partial.
Update model_name calls to support Rails 4.