Fix to support Rails 4.0

Rails 4.1 was working, but due to the deprecation warning, Rails 4.0 was failing.  Also updated travis to include Rails 4.1 and remove Rails < 3.2.