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

This request contains:

1. Add support to rails 4.1.
2. Fix all tests to pass with 3.2, 4.0, and 4.1.
3. Configure Travis-CI to run with these rails versions.