Preliminary work for a Ruby ~> 1.9 and Rails ~> 3.0 upgrade.

May eventually lead to 2.0 and 4.0.
Identified and reverted gems to previous versions to run application under Rails 2.3.18 and Ruby 1.8.7.