Fixed errors in merge of branch 'jijeshmohan/redmine2'.

Also refactored code to put the multiple valid_trackers_list methods in a
single place (TrackerHelper module).