Update Travis config to properly set rails versions, build for Rails 4.1

In the process of working on a few tweaks to rolify, it became apparent that the travis build is quite broken. I've gone ahead and changed that up a bit, fixing the version numbers of rails to be appropriate, and adding a build for Rails 4.1.

In order to build in 4.1, the '.rb' extension that many other pull requests have added needed to be placed, as well as fixing the version to the '4-1-stable' branch on github rather than the 4.1 published by railsgems. There is an issue with activerecord in Rails 4.1 that prevents Resource.with_role(:role, User.first).count from working problerly (SQL Syntax exception). This branch (and likely 4.1.1) fix that problem.