Converted $.rails.allowAction override to Coffeescript.
Made course grade page load much faster; refactored some helper methods.