Rails 3 issue fixes

Rails 3 escapes HTML by default for view fields. In places where html is included in a string(most commonly in link_to), the string needs to be specified as html_safe so that the HTML isn't escaped. Added fixes for most working areas where fields were incorrectly escaped. 

Also added a need require for the bj_migration since migrations don't include application.rb anymore.