Major work on Rails 2.3 to Rails 3.0

Addressed most of the deprecation warnings and started struggling with
html_safe. About half the functional test files are passing without
errors.