Added constraints to mongoid (3.1.5) and representable (1.7.1) as these were causing breaking changes in tests