Setup Loofah::XssFoliate to sanitize/strip HTML in models.
THEME: Refactor logic for generating title.
Switch to "html_safe"; remove uses of "h", "cleanse", "strip_html", etc.
DEPENDENCY: Add "bluecloth" gem to provide Markdown rendering.
Remove obsoleted "white_list" plugin, replace with "loofah" and "bluecloth".
Update #format_description to use Markdown, rather than #simple_format.

The issue is that Rails' #simple_format helper keeps changing between
versions in problematic ways, and the latest one adds unwanted BR tags
everywhere. This is becoming a maintenance problem.

The solution is to use the well-understood Markdown format for doing
formatting, which does many of the nice things we liked about
#simple_format, plus others. However, users can still enter most HTML tags
if they don't want to learn Markdown.
Add #cgi_escape helper, with workaround for bug in RailsXss.

The problem is that CGI::escape throw an exception when
used on a RailsXss SafeBuffer. The workaround is to convert the SafeBuffer
to a String before escaping it.

Details about the bug can be found at https://github.com/rails/rails_xss/issues/8
Rails 3 syntax change: RAILS_ENV => Rails.env
Rails 3 syntax change: RAILS_ROOT => Rails.root
Rails 3 syntax change: RAILS_DEFAULT_LOGGER => Rails.logger
Rails 3 syntax change: Upgraded view helper blocks to use <%= instead of <%
Rails 3 syntax change: named_scope => scope
Rails 3 syntax change: Updated calls to ActiveRecord#find to use Rails 3 query syntax.
Rails 3 syntax change: Upgraded routes.rb
Rails 3 syntax change: Moved configuration from environment.rb to application.rb
Updated Rails version to 3.0.7, generated new boilerplate, got rake -T to run, removed config/preinitializer.rb
DEPENDENCY: Upgraded paper_trail to 2.2.4 for Rails 3 compatibility
DEPENDENCY: Replaced theme_support plugin with themes_for_rails, a rails 3 compatible fork of theme_support
Rails 3 syntax change: definition of custom date formats, added html_safe to a few date-related helpers
Upgraded initialization components of application.rb to use global constants (yay!)