Fix for issue 1418: a newline apparently made the median wrong.
Fixed issue 1347 (seemingly infinite loading)
Added @ealona's test cases.
implement eager loading for index action on main
do some formatting
Fix updating of annotation overall comment

This fixes #1431. The instance variable `@result` is always the new
result of the remark, not the original old result. The caller of the
template passes the old result correctly as a local variable `result`,
but the template is not using it.

Tested:
- local server
- rake test:unit
- rake test:functional
Add functional test to cover comment edit forms
fix errant parens
Fix for issue-1414: Grade doesn't get updated when grading under TA
implement su's suggestions
Put a separator before the spreadsheets in the dropdown to make it a bit clearer of the separation.
Changed if not to unless
Formatting.
Replace debugger with byebug in Ruby 2

The `debugger` gem hacks into the Ruby core and doesn't support Ruby 2
very well. `byebug` is a modern debugger that makes use of new APIs in
Ruby 2 for debugging. Also, `debugger` gem is broken in Ruby 2.1.2
(cldwalker/debugger#125).

Since `byebug` only supports Ruby 2, `debugger` still needs to be used
by Ruby 1.9.

There is no need to explicitly require the library as Bundler does that
automatically, unless specified as `:require => false`.

With this change, instead of calling `debugger` in the code to start the
debugger repl, call `byebug`. More docs at
https://github.com/deivid-rodriguez/byebug

Tested:
- Ruby 1.9.3, 2.1.1, 2.1.2
- manually using byebug to debug
Migrate .rvmrc to .ruby-version/.ruby-gemset files

.ruby-version/.ruby-gemset are compatible across the other popular Ruby 
environment managers and has been supported in RVM for over 2 years.

Additionally, RVM will automatically setup the gemset, including the
setup/installation of Bundler.

However, it will only show the command to install a Ruby version, it
will not install it automatically. It will also not use bundler to
install everything in the Gemfile.
Manual disable/update of log in button
Replaced disabled_with with data-disable-with
Merge branch 'issue-1414-r2' of https://github.com/arkon94/Markus into arkon94-issue-1414-r2
Merge pull request #1463 from arkon94/issue-1414-r2

Closes #1414: Grade doesn't get updated when grading under TA
Merge branch 'issue-1418' of https://github.com/arkon94/Markus into arkon94-issue-1418