Refactor .travis.yml

Conflicts:

	.travis.yml
Updates Rails to 3.2.11 for security updates
Bump rails version in README [ci skip]
Stringify api_key

Fixes #2492
Use a string comparsion for locale parameters