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

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