remove obsolete direct package dependencies for redmine
fixed deprecated variable access in templates
replaced class variables with constants
updated for redmine 2.3