Update bugherd_controller.rb

Tweaks to make the controller work in Redmine 2.x