Upgrade to Rails 4

Thanks to everyone who helped with this. Finally the tests pass so this is PR-able. Sorry, this is giant. :sunny:
Since @fofr switched us to govuk_admin_template in 98fe121749600b4cb7b18a0bf7343a45287868ee, we don't directly depend on jquery-rails, so I don't think we need this line.