Add support to rails 4.1 and run Travis-CI with multiple rails versions

This request contains:

1. Support rails 4.1 and fix all tests to pass in 3.2, 4.0, and 4.1.
2. Configure Travis-CI to run with these rails versions.