Suppress deprecation warnings for Rails 4.2

This one adds activerecord_4.2 appraisal and some fixes to suppress deprecation warnings.