Fix: features deprecated in Rails

find(:first) and find(:all) are deprecated in favour of first and all
methods. Support will be removed from Rails 3.2
Fix: Expressions can be simplified
Fix: unnecessary semicolon
Fix: removed unnecessary parentheses
Fix: unnecessary return value
Fix: removed unused parameters
Merge pull request #1328 from benjaminvialle/CodeInspection

Code inspection
Modifying routing-filter for locales for subdomains
Fix: making locales optional
Fix: tests
Removing unnecessary comment
config.action_view.debug_rjs is removed in Rails3.1

Onwards you will need to install prototype-rails to continue to use
RJS templates
Revert to old hash syntax in routes
Merge pull request #1332 from benjaminvialle/debug-rjs

config.action_view.debug_rjs is removed in Rails3.1
Merge pull request #48 from danielstjules/pr/1331

Revert to old hash syntax in routes
Merge pull request #1331 from benjaminvialle/routing-filter

Routing filter
fixed bug 1337 by adding missing parameters to call() on line 221
Fixed issue 1338, added a condition to check for empty student array in alpha_paginate in app/models/grade_entry_form.rb
Simple_format was adding  <p> and </p> on new annotations.
When it was removed, the issue 1299 was solved.
Merge pull request #1351 from tiagochst/issue-1299

Closes #1299