Replace RAILS_ROOT with Rails.root
Make the ApiTemplateHandler Rails3 compatible
Move open_id_authentication to Gemfile

The bundled open_id_authentication plugin has some Rails 3
incompatibilities.
class_inheritable_accessor is removed in Rails 3.2

Use class_attribute instead
Replace named_scope with class methods
Update to new syntax for validation definitions
Rename views: _*.rhtml to _*.erb and *.rhtml to *.html.erb

As partials might also be used in js formatted responses, we just
rename them to .erb. Normal templates are renamed to .html.erb.
This follows the new Rails convention to play well with tilt.

for i in `find app/views/**/_*.rhtml`; do \
  git mv $i `echo $i | sed s/\\.rhtml$/.erb/`; \
done

for i in `find app/views/**/*.rhtml`; do \
  git mv $i `echo $i | sed s/\\.rhtml$/.html.erb/`; \
done
filter_parameters has moved to the application config
Load the Project model very early.

This is required to work around a circular dependency issue during class loading.
See the comment in application.rb for details.
Avoid to use raw SQL
Replace rake generate_session_store with generate_secret_token

Rails 3 uses a secret token in various places. The former cookie
secret has thus been re-purposed to a generic secret token which
is generated with the new task.

The former task also configured the cookie session store. this is
now done in application.rb and can be overridden in the
additional_environment.rb
Adapt to new file location in Rails3
Shouldn't be needed on rails 3 anymore.
SecureRandom moved to the top-level scope in Rails3
Add propper routes for users and search
@controller is now a helper method
Generate HTML-safe favicon tag
Make output of javascript_heads HTML-safe
inheritable_attributes are now class_attributes
First take on minitest