Rails 4 compatibility

It seems `ActiveModel::Serialization` is not required by default in Rails 4 but since it's present in 3.0+ I think it's ok to just require it ourselves instead of checking if it is defined.

After that one change everything passes on Rails 4 for me!!