Adds test for writing your own attributes on GridFS#put

Ensures consistency between Mongoid 3.x and 4.x
Pegs Rails dependency at v4.0.0

Pegs Rails dependency at v4.0.0 as master is moving to 4.1.x and
conflicts with Mongoid master requirements