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 this change all the unit specs pass on Rails master.

**Update**: should do the integration specs now too, once GitHub starts playing nice with Travis again.