Add rails-3-0 test app.
Fix Rails 3.0 specific issues.