Travis Integration and Rails 4 test compatibility

1) Added .travis.yml. 
2) Refactored multi-Rails version testing to use Gemfile.
3) Fixed Rails 4 issue in tests.