Rails 4 Support and Travis Integration

1) Enabled Ruby 2 and Rails 4 in the .travis.yml file.
2) Made Rails version configurable in Gemfile.
3) Addressed minor Rails 4 incompatibilities in routes, tests.

Travis runs green on the whole test matrix.