Update to rails 4.1.x

This pull request updates the code to use rails 4.1.x (currently specifically 4.1.4).

All tests pass, and there is a test instance deployed at http://rails41.apis.dev.openstreetmap.org/ if people want to try it and see if they can spot any obvious problems.