Fix the versions controller and views.
Fix grades#view_my_scores
Fix the Revert/Impersonate side button
Optimize grades#view
Merge remote-tracking branch 'upstream/rails4' into rails4