initial work on compatiblity with redmine 2.0+

most things should now work