First pass at fixing rails4 deprecation warnings

@samsaffron, getting started as discussed ...

Now `RAILS4=true bundle exec rspec spec/models/topic_spec.rb` does not result in any deprecation warnings.

If this approach is ok, I will work on the remaining deprecation warnings in subsequent PRs. Incidentally, this PR should halve the deprecation warnings on `rake autospec` for rails 4.