Updates necessary for Rails 4.1

Made a lot of updates necessary to make the gem Rails 4.1 compatible: mostly to do with ActiveSupport 4.1 and Minitest 5.3.