Upgrade example Rails provider/consumer app to Rails 3

Upgrade the example Rails provider/consumer app to work on Rails 3:

* Run rake rails:upgrade
* Run rails new .
* Remove script/* files (except for script/rails)
* Rename templates
* Update routes for Rails 3
* Install CSRF token in provider form
* Exclude action and controller options from parameters when verifying
  return_to url
* Cleanup a few unneeded files like .gitignore for unused directories
  and application layout that were generated for Rails 3
Remove unused variable

Why
----

This commit removes the following interpreter warning.

* warning: assigned but unused variable

Reproduction
------------

* ruby 1.9.3p392 (2013-02-22 revision 39386)
* `$VERBOSE = true` on test
Remove unused variable and definitions in test

Why
----

This commit removes the following interpreter warning.

* warning: assigned but unused variable

Reproduction
------------

* ruby 1.9.3p392 (2013-02-22 revision 39386)
* `$VERBOSE = true` on test
Fix indent in test

Why
----

This commit removes the following interpreter warning.

* warning: mismatched indentations...

Reproduction
------------

* ruby 1.9.3p392 (2013-02-22 revision 39386)
* `$VERBOSE = true` on test
Rename conflict variable with the following block

Why
----

This commit removes the following interpreter warning.

* warning: shadowing outer local variable

Reproduction
------------

* ruby 1.9.3p392 (2013-02-22 revision 39386)
* `$VERBOSE = true` on test
Security fix to support Google's Federated Login API
Fix problem where mode is not checkid_setup or checkid_immediate and using OpenID2
Change "oauth" to "ui" in variable name
Stop overwriting String#starts_with? and String#ends_with?
"warning: assigned but unused variable"
"warning: shadowing outer local variable - s"
Merge pull request #55 from amatsuda/stop_overwriting_string_starts_ends_with

Stop overwriting String#starts_with? and String#ends_with? if defined
Be aware when using Hash or Array as default value for unknown Hash keys.

If you're using `Hash.new([])` or `Hash#default=` then it's the same object that is assigned to each unknown key, so you'll be adding to the same array when e.g. adding multiple AX attributes.
Fix test suite encoding problems

Closes #57
Deprecate Ruby 1.8 support
Again: Fix test suite encoding problems

Closes #57
Mr. Travis, please...
Merge pull request #58 from tobiashm/master

Be aware when using Hash or Array as default value for unknown Hash keys
Merge pull request #53 from kendagriff/master

Ignore Associations For OpenID2 (Google's Security Bug Fix)
Merge pull request #49 from mcary/rails-3-example

Upgrade example Rails provider/consumer app to Rails 3