Add compatibility for redmine version 2.x

Update models to be compatile with redmine 2.x