Redmine 2.2 support

The plugin needed some updating before it started to work in Redmine 2.2 and under a newer Ruby version.

The corrections seem to work, although `routes.rb` probably needs some more work.