Rails 4 compat (replaces #9)

Had to update the gemspec and fix an error in the routes. This replaces #9 with an extra commit and more sensible branch name.